Function: roundNumberTrim()
roundNumberTrim(
value,precision):string
The same rounding as roundNumber, and then the trailing zeros after the
decimal point are removed, and so is a decimal point with no digits after
it: 1 gives 1, 12.30 gives 12.3, and roundNumberTrim(400, 5) gives 400.
A value that rounds to zero gives 0, never -0.
Parameters
• value: string | number | (string | number)[]
to return a measurement value from
• precision: number = 2
defining how many digits after 1..9 are desired
Returns
string