Trunc()
- Last UpdatedJul 22, 2024
- 1 minute read
Truncates a real (floating point) number by simply eliminating the portion to the right of the decimal point, including the decimal point, and returns the result.
Category
Math
Syntax
NumericResult = Trunc( Number );
Parameter
Number
Any number or numeric attribute.
Remarks
This function accomplishes the same result as placing the contents of a float type attribute into an integer type attribute.
Examples
Trunc(4.3); ' returns 4;
Trunc(-4.3); ' returns -4;