Hello!
Has anyone found a good way to print or set tooltips (or any other numbers) to only a certain number of decimal places in Lua yet? The string.format() option always just returns the minimum number it seems to be able to.
Integer math doesn't work super well either as it is prone to floating point issues.
Example: Turn 99.9978434% to 100.00% or 13.5584759% to 13.56%
Thanks!
Has anyone found a good way to print or set tooltips (or any other numbers) to only a certain number of decimal places in Lua yet? The string.format() option always just returns the minimum number it seems to be able to.
Integer math doesn't work super well either as it is prone to floating point issues.
Example: Turn 99.9978434% to 100.00% or 13.5584759% to 13.56%
Thanks!