MC-Basic:SGN/zh-hans

From SoftMC-Wiki
< MC-Basic:SGN
Revision as of 05:40, 28 April 2017 by Chi (talk | contribs) (Created page with "{{Languages}} == 缩写 == == 格式 == SGN(<''expression''>) == 适用版本 == 所有版本 == 描述 == 此函数返回表达式的符号。 If ''<expression> ''is pos...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
语言: English  • 中文(简体)‎

缩写

格式

SGN(<expression>)

适用版本

所有版本

描述

此函数返回表达式的符号。

If <expression> is positive, SGN returns +1

If <expression> is zero, SGN returns 0.

If <expression> is negative, SGN returns -1

类型

Double

取值范围

± Max Double

单位

默认值

使用范围

配置器, 任务区或终端

限制

只读

例子

?SGN(Var1)

I = SGN(Var2)

参见