TRUNC function

The TRUNC function is one of the math and trigonometry functions. It is used to return a number truncated to a specified number of digits.

Syntax

TRUNC(number, [num_digits])

The TRUNC function has the following arguments:

ArgumentDescription
numberA number to truncate.
num_digitsA number of decimal places to display. It is an optional argument. If omitted, the function will assume it to be 0.
Notes

How to apply the TRUNC function.

Examples

The figure below displays the result returned by the TRUNC function.

TRUNC Function

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags