Trunc(Value[, Precision])
Value. The number to truncate.
Precision. Number of decimal position determining truncate accuracy. Positive values truncate fractional part, negative values truncate integer part, zero truncates a value to integer. The default value is 0.
NOTE. To determine the parameter, specify either the number or the address of the cell where it is located.
It truncates a number to the specified number of decimal places.
| Formula | Result | Description |
| =Trunc(21.525,1) | 21,5 | It truncates the 21.525 number to an integer with the precision of one tenth. |
| =Trunc(21.525,-1) | 20 | It truncates the integral part of the 21.525 number. |
| =Trunc(B6) | -4 | It truncates the number in the B6 cell to an integer. The B6 cell contains the -4.6 number. |
See also:
Function Wizard │ Mathematical Functions │ Ceiling │ Even │ Floor │ Int │ MRound │ Odd │ Round │ RoundDown │ RoundUp │ IMath.Trunc