Skip to content

Add tofixed lua function

Hanicef requested to merge Hanicef/SRB2:add-tofixed-lua into next

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

Merge request reports

Loading