I have been working on my game and i saw two types of values: IntValue and NumberValue, and both are about numbers! And i don’t know what is the difference of each one, i don’t know very much english, so what’s the difference between those values? Thanks
9 Likes
Int values store whole numbers while number values can store decimals.
59 Likes
This might be critiqued as the sin of ‘micro optimizing’, but only use NumberValues over IntValues if you have to.
Edit: Actually, I don’t think this micro optimizing. Just do it.
3 Likes
An integer is a whole number, a number with no decimal places, such as 1
, 2
, 184
, -9
…
A number can have decimals. 7.87
, 5.999
, -8.09
…
13 Likes