INT()的实现

来自ArcoWiki
Slia讨论 | 贡献2018年6月7日 (四) 09:29的版本 (创建页面,内容为“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"