Hi! Is there a handy way to have a value node have the value of mathematical constants like π or e? (Instead of having to copy paste a couple of thousands of decimals from the web
)
Thanks!
Hi! Is there a handy way to have a value node have the value of mathematical constants like π or e? (Instead of having to copy paste a couple of thousands of decimals from the web
)
Thanks!

You can type pi/tau into most boxes and it will give you a float, but for some reason not into a value node…
I could have sworn I did try that ![]()
Thanks very much!
You sure?

Yeah seems to be buggy, just worked for me here???
Well, it works. I probably must have accidentally written “Pi” with a versal or something haha
Seems like pi, tau, e, and inf work- all the constants that come packaged with Python’s math library. It’s worth noting that inf doesn’t actually give infinity, it gives 0.0, but it does work ![]()
You’re just using a more creative definition of pi, that’s all ![]()
Inflation is everywhere…
Yup, its cAsE-sensitive. Watch out for Caps-Lock.
You could put the ones you use regularly into a node group, and save that node group into your default file. Then Add > Group > My Constants.
Then just use the one output socket you need.
You can also add inputs so if you often want to (for example) multiply x by pi, you can have that hidden in the node group as well.
I can’t find any historical precedent for pi being (incorrectly) marked at 3.54- we’ve been within 1% of accuracy since the first written records, dating back many thousands of years; however, I do find this snippet about the Babylonians entertaining:
Babylonian mathematics usually approximated π to 3, sufficient for the architectural projects of the time… The Babylonians were aware that this was an approximation, and one Old Babylonian mathematical tablet excavated near Susa in 1936 (dated to between the 19th and 17th centuries BCE) gives a better approximation of π as 25⁄8 = 3.125, about 0.528% below the exact value.
I love the idea of ancient Babylonian construction teams saying “should we do the math to build accurate circles? Nah, we’re not getting paid enough. 3 will do just fine.” Some things never change ![]()