Garry's Mod Wiki

Revision Difference

util.NiceFloat#528633

<function name="NiceFloat" parent="util" type="libraryfunc"> <description>Formats a float by stripping off extra 0's and .'s</description>⤶ <description>Formats a float by stripping off extra `0's` and `.'s`.</description>⤶ <realm>Shared and Menu</realm> <file line="151">lua/includes/extensions/util.lua</file> <file line="146-L164">lua/includes/extensions/util.lua</file> <args> <arg name="float" type="number">The float to format</arg>⤶ <arg name="float" type="number">The float to format.</arg>⤶ </args> <rets> <ret name="" type="string">Formatted float</ret>⤶ <ret name="" type="string">Formatted float.</ret>⤶ </rets> </function>⤶ </function>