Official Content

Returns the integer part of a Numeric-expression.

Syntax

Numeric-expression.Integer()

Type Returned:
Numeric

Where:

Numeric-expression
     Is a Numeric expression that indicates the number the method will be applied to.

Scope

Data Types: Numeric

Description

This function returns an integer value, representing the integer part of a received parameter.

Samples

&Val = 5/3
&IntVal = &Val.Integer() // Result &IntVal: 1

&Val = -1.75
&IntVal = &Val.Integer() // Result &IntVal: -1

&Val = 1.5
&IntVal = &Val.Integer() // Result &IntVal: 1

See Also

Int function







Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant