What's the difference between IntValue and NumberValue?

I use both IntValue and NumberValue, but I never really understood which each is the most efficient for.

3 Likes

In programmer terms, IntValues stand for Integer Values and store Integers while NumberValues store Floats. (it may also be doubles but idk theyre functionally the same for lua)

In English, IntValues store only whole numbers (-1,0,2) while NumberValues can store whole numbers and decimals (3.14, -1.23, 50.999999)

Basically, if you’re only gonna be needing whole numbers, use IntValue

7 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.