Int - return the integer portion of a decimal number

Return to Introduction  Previous page  Next page

$return = int(decimal_number)

Where:

 

$returnreceives the integer portion of the decimal number.
decimal_numberis a decimal number.        

 

decimal_number may be a variable.

The int command returns the integer portion of a decimal number.

Examples

$result = int(1.5)

$result = int($number)

 

See Also:

 

Round

Script Command Summary

Script Variables

Using the Scripting Language


TN3270 Plus is continually being improved. To learn more about the latest enhancements, please review our Version History web page.