Sign
数値の符号を計算します。
入力フィールド
- number:符号をテストする数値
出力フィールド
-
Output:次のいずれかです。
-
-1
:入力が負の数値の場合 -
0
:入力が0の場合 -
1
:入力が正の数値の場合
-