Fact - スクリプトおよびチャート関数
Fact() は、正の整数 x の階乗を返します。
Syntax:
Fact(x)
Return data type: integer
Limitations:
数値 x が整数以外の場合は切り捨てられます。正の数でない場合は、
Examples and results:
例 | 結果 |
---|---|
Fact( 1 ) |
1 を返します |
Fact( 5 ) |
120 を返します (1 * 2 * 3 * 4 * 5 = 120 ) |
Fact( -5 ) |
|