Here is where I got this from.
Guess what? print
in Luau calls the internal __tostring similar to Lua 5.4 that has virtually the exact same functionality as tostring
), and I’ll repeat, tostring
rounds the values to 14 significant digits.
Based on this image, how do you know it’s rounded to decimal places and not significant figures? How does that image lead you to conclude your statement?
No, I am not talking about Luau numbers. I am talking about numbers in binary data. I just explained what a number was in my post, and it just happened to be that there are numbers, not of any type such as a float, int, or double, literally just some binary.
sorry I accidentally made that the solution, misclick
oh and I’m still gone btw
yea this literally outputs as 1
I am going to make this the solution unless someone actually came up with something
gonna stick with the 14 decimal place limit for now
Okay so, this is my idea.
Find a way to multiply the number to a power of 10 so that there is no decimal left. Then you could use tostring and obviously make the changes you need (like adding “0.” in front of it or something).
Disregard this, found out that this has the exact same limits
yep I realized this as I have already tried it before