TRUNC

truncates a number to a given precision · from excel · excel: not yet compared · sheets: not yet compared

signature

TRUNC(number, [num_digits])

returns: number

argumentrequired
number required
num_digits optional

examples

formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.

fx =TRUNC(2) 2

related

  • ABS returns absolute value of a number
  • ACOS returns arccosine of a number
  • ACOSH returns inverse hyperbolic cosine
  • ACOT returns the arccotangent of a number
  • ACOTH returns the inverse hyperbolic cotangent
  • ADD adds two numbers — sheets exposes the + operator as a function