toFixed
creates a print friendly version of a floating point value by limiting decimals
Syntax
toFixed(floatStr, decimals)
Returns
returns (string) a print friendly version of the value
Parameters
- floatStr (float/string)
- the floating point value
- decimals (integer)
- the amount of decimals