Storing very small numbers

I have currently got a NumberValue that I set to something that is lower than 0.00001. Unfortunately the value automatically changes to 0. Can you help me in storing value smaller than that?

The property widget, for whatever reason, doesn’t allow precision over 3 decimal places. For your use case, I recommend a StringValue which can store thousands of characters (not that you need that much precision). You’ll just need to typecast between number and string and vise versa.

1 Like

Does not really work as intended. Can you provide any examples?

Here’s my script:

local num = 0.00001
script:WaitForChild("Value").Value = tostring(num)
num = tonumber(script:WaitForChild("Value").Value)
print(num)

It prints out 1e-05.

1e-05 is 1 raised to the power of -5 which is indeed 0.00001.

I know however how can I use it in a script?

Edit: seems that it can be used normally:

local num = 0.00001
script:WaitForChild("Value").Value = tostring(num)
num = tonumber(script:WaitForChild("Value").Value)
wait(num)
print("test")

The script prints “test”.