Add tofixed lua function
I'm honestly surprised that a function like this doesn't exist in Lua yet. What it simply does is that it parses a string into a fixed number instead of an integer, something that's useful when making custom commands that should be able to take decimals. If the string passed into the function is invalid, it will return nil
, just like to tonumber
.
Edited by Hanicef