Rexx - TRUNC 函式



此方法截斷數字。

語法

TRUNC(i) 

引數

  • i − 這是需要截斷值的輸入數字。

返回值

返回截斷後的數字。

示例

/* Main program */ 
say TRUNC(12.22)  

執行以上程式後,將得到以下結果。

輸出

12 
rexx_numbers.htm
廣告

© . All rights reserved.