Hi, I wonder what is the maximum float value in Pd and how I can write it in a message box.
Thank you in advance!
What is the maximum float value in Pd and how to express it?
Hi, I wonder what is the maximum float value in Pd and how I can write it in a message box.
Thank you in advance!
@cuinjune Hi, when I need a unspecified high number I've always used 1e+06, but I've seen 1e+08 and it worked, obviously being even higher. Not sure which one is the highest in absolute terms (would be interesting to know), but those are pretty high if that is your concern.
@cuinjune I did a few trials and is seems like 1e+38 is the highest you can get before you get "inf".
If anyone could confirm this that would be interesting.
Thanks guys! I tried the numbers myself and as @weightless wrote, it seems like 1e+38 is the highest float I can use in my computer.
I tested this with both 32bit and 64bit vanilla pd on Mac OSX 10.11.6.
@cuinjune @weightless Yes.... os bits and Pd bits seem strangely irrelevant.
If you really need to know the biggest number....... here it is.....
.... ok, maybe not the biggest as I didn't get to 38 decimal places......
biggest.pd
Yes..... Pd insists on rounded power notation, even in comments
So the real limit (saved with the patch) is 3.40282e+038
The rest is thrown away on save.... and so cannot be recalled unless you use an external source.
Other limits that I have hit......
Array....... 40,000,000 elements (ish?)
Network Ports........ 64
If statements within [expr]...... 9
Actually the safe maximum that I have used for array elements in 32-bit Pd has been 1.682e+007....
David
@whale-av Thanks for sharing your findings. It was helpful!
It's only partially related but I just wanted to point out that the [text set] object, which takes a high numbers to append a line to the text, only accepts up to 1e+09 before returning an error on my system (Pd 0.47.1-64bit, Mac).
@weightless That's good to know. Thank you!
Oops! Looks like something went wrong!