...
Info |
---|
|
This routine is available starting with SIL Engineā¢ 2.5. |
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | fact(number) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Returns the factorial of a number. |
Returns the factorial of a number. The factorial of a number n is equal to 1*2*3*...* n
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
number | Number | Yes | Non-negative number you want the factorial for. If number is not an integer, it is truncated. | |
Return
...
Type
...
Number
Example
Code Block |
---|
number a = fact(5);
print("a= " + a);
number b = fact(3.7);
print("b= " + b);
number c = fact(-3);
print("c= " + c); |
Prints:
...
a= 120 ;
...
b= 6;
...
c= NaN;
...
See
...
also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "math_routines" and space = currentSpace ( ) |
---|
labels |
---|
|
...