Truncate a Number
Truncates a decimal number to a specified precision without rounding.
Last updated
Was this helpful?
Was this helpful?
truncate the number with
the number is 123.4567the number is 123.4567
truncate the number with
the precision is 3the number is 3.14159
truncate the number with
the precision is 0the number is -3.14159
truncate the number with
the precision is 3the number is 123.4567
truncate the number with
the precision is 2