Function request: IsNumeric
Bugs Larnia
In various events, such as listeners, we can only pass a string. We know that we can pass floats or integers as a string, but trouble occurs if the listener can receive both alphanumeric and numeric values. The check for that now would be a separate function that would be circumspect.
I request adding a function: integer IsNumeric(string input)
The input is a string and the return value is TRUE if the string is a valid numerical value (e.g. 1, -2198, 15.49883) and FALSE otherwise.
Log In
WolfGang Senizen
I guess an acceptable alternative option would finally be giving us regex >.>
Slua also "fixes" this as luau has ways of doing this built in.
Atomic Infinity
It would be a useful shortcut. In the meantime there are some useful snippets detailed on these wiki pages to verify if a string is integers or floats :