SheetRocks
Documentation/Formulas/TRUNC

TRUNC

Truncates a number to an integer by removing the fractional part

Syntax

TRUNC(number, [num_digits])

Arguments

Argument Description Required
number The number you want to truncate Required
num_digits A number specifying the precision of the truncation. Defaults to 0. Optional

Examples

Truncate to integer

=TRUNC(3.14159)
Result ⇒ 3

Truncate to 2 decimal places

=TRUNC(3.14159, 2)
Result ⇒ 3.14

Truncate negative number

=TRUNC(-2.9)
Result ⇒ -2

Related Functions

Other Math functions:


← Back to Formula Reference