DiGrande.it
Braille and Technologies for Visual Impairment

Trunc- Returns the truncated value of a number

Function that returns the truncated value of a floating point number.

- Trunc(N[,D]): float

Parameters:

- (float) N: number to be truncated;

- (int) D: Number of digits after the decimal point (optional).

Description:

Use the Trunc function to derive the truncated value of a number. The D parameter specifies how many digits after the decimal point to keep. The default value is 0.