INT()的實現

從 ArcoWiki
於 2018年6月7日 (四) 09:29 由 Slia (對話 | 貢獻) 所做的修訂 (创建页面,内容为“Implementation of the is a standard DMIS 5.2 command which return the integer part of a number truncating the value. The command is: $$Begin Example… DECL/…”)
(差異) ←上個修訂 | 最新修訂 (差異) | 下個修訂→ (差異)
跳到: 導覽搜尋

Implementation of the is a standard DMIS 5.2 command which return the integer part of a number truncating the value. The command is:

$$Begin Example…

DECL/DOUBLE,decimal_number
DECL/INTGR,integer_number
decimal_number= ASSIGN/1.123456
integer_number=ASSIGN/INT(decimal_number)
decimal_number= ASSIGN/1.654321
integer_number=ASSIGN/INT(decimal_number)
$$ Also Return "1"