In my case, I was just trying to make a string representation of this number ... however, I believe that this solution may be useful for others as well.
string.sub(tostring(percent * 100), 1, 4)
to return it to a numerical representation, you can simply call tonumber()on the resulting number.
source
share