Int function
Syntax
Int(decimal)
Description
Use the Int function to truncate a decimal number x to an integer and returns the result as a Number value.
Note:
PeopleSoft only supports 32 bit integers. The largest integer value we support is 4294967295.
Parameters
| Parameter | Description |
|---|---|
|
decimal |
A decimal number to be truncated. |
Returns
Returns a Number equal to decimal truncated to a whole integer.
Example
The following example sets &I1 to 1 and &I2 to -4:
&I1 = Int(1.975);
&I2 = Int(-4.0001);
Related Topics