CALC.trunc(number, num_digits)

Truncates a number to an integer by removing the fractional part of the number. Number is the number you want to truncate. Num_digits is a number specifying the precision of the truncation. The default value for Num_digits is 0 (zero).

Example

CALC.trunc(2245.789, 2);

// returns 2245.78

<< CALC.tanh(number) © 1996-2013 InetSoft Technology Corporation (v11.4) JS.7.5 Statistical Functions >>