Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Number Value Problems?

Asked by
Vezious 310 Moderation Voter
8 years ago

Ok. When I insert A number, like 0.01 it converts to 0.010000000000000000208... Why?

0
I edited my answer btw. HungryJaffer 1246 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

This is a normal thing with double values. Do not worry about it, as it will not change anything.

0
it did change something.. the if Value ==1 ... It doesn't work now. Vezious 310 — 8y
1
use tonumber(value) == 1, you're trying to compare 2 different value types HungryJaffer 1246 — 8y
Ad

Answer this question