Truncates a number to a certain number of significant digits by omitting less significant digits.
value- The value to be truncated.
places- [ OPTIONAL -
0by default ] - The number of significant digits to the right of the decimal point to retain.
placesis greater than the number of significant digits in
value, value is returned without modification.
placesmay be negative, in which case the specified number of digits to the left of the decimal place are changed to zero. All digits to the right of the decimal place are discarded. If all digits of
valueare changed to zero,
TRUNCperforms no rounding, simply discarding unwanted digits.
ROUNDUP: Rounds a number to a certain number of decimal places, always rounding up to the next valid increment.
ROUNDDOWN: The ROUNDDOWN function rounds a number to a certain number of decimal places, always rounding down to the next valid increment.
ROUND: The ROUND function rounds a number to a certain number of decimal places according to standard rules.
MROUND: Rounds one number to the nearest integer multiple of another.
INT: Rounds a number down to the nearest integer that is less than or equal to it.
FLOOR: The FLOOR function rounds a number down to the nearest integer multiple of specified significance.
CEILING: The CEILING function rounds a number up to the nearest integer multiple of specified significance.