# Interpolate values inside math expression

**URL:** <https://discourse.julialang.org/t/interpolate-values-inside-math-expression/109742>\
**Category:** Pluto\
**Created:** [February 5, 2024, 3:33pm UTC](https://discourse.julialang.org/t/interpolate-values-inside-math-expression/109742 "2024-02-05T15:33:06Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [February 22, 2025, 1:40am UTC](https://discourse.julialang.org/t/interpolate-values-inside-math-expression/109742/6 "2025-02-22T01:40:49Z")

</div>

> [@RomeoV](#):
>
> Perhaps it has to do with how interpolation is escaped in macros?

String macros, by default, do no interpolation at all, and the string is treated completely literally. (You also don’t need to escape backslashes.) This allows things like regex macros `r"^\s.$"` to not require excessive escaping.

(Each string macro has to implement interpolation etc. manually if it wishes. See e.g. [\_str string interpolation? - #11 by stevengj](https://discourse.julialang.org/t/str-string-interpolation/125766/11))

---

_[View the full topic](https://discourse.julialang.org/t/interpolate-values-inside-math-expression/109742)._
