Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

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;

See also

Round()

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in