DiGrande.it

Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

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.