Hello, I’ve heard that Luau does not have a proper number type, and I genuinely do not understand what this implies.
Could anybody help me?
Hello, I’ve heard that Luau does not have a proper number type, and I genuinely do not understand what this implies.
Could anybody help me?
Luau does have a proper number type.
I mean that’s what I’m thinking, I think I should edit and mention some posts saying it in OP.
Maybe you made spelling mistake?
local myNumber = 2
if typeof(myNumber) == "number" then
print("yes") --prints
end
(and btw they do have one)
Luau has a type called “number”
Perhaps you’re referring to there being no distinction between floats and integers, which is true
Where have you heard this? Please give us context.
I cannot find it anymore, it was in a metatable tutorial!
Figures. Whoever wrote that probably just vaguely explained it, which created this confusion.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.