Rexx - TRUNC


Advertisements

This method truncates a number.

Syntax

TRUNC(i) 

Parameters

  • i − This the input number for which the value needs to be truncated.

Return Value

Returns the truncated number.

Example

/* Main program */ 
say TRUNC(12.22)  

When we run the above program, we will get the following result.

Output

12 
rexx_numbers.htm
Advertisements