Garry's Mod Wiki

util.NiceFloat

  string util.NiceFloat( number float )

Description

Formats a float by stripping off extra 0's and .'s.

Arguments

1 number float
The float to format.

Returns

1 string
Formatted float.