Difference between revisions of "Documentation/How Tos/Calc: FACT function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(Initial content) |
m |
||
Line 3: | Line 3: | ||
== FACT == | == FACT == | ||
Returns the factorial of a number. | Returns the factorial of a number. | ||
− | |||
=== Syntax: === | === Syntax: === | ||
Line 10: | Line 9: | ||
: <tt>'''FACT(0)'''</tt> returns <tt>'''1'''</tt> by definition. | : <tt>'''FACT(0)'''</tt> returns <tt>'''1'''</tt> by definition. | ||
− | |||
=== Example: === | === Example: === | ||
Line 18: | Line 16: | ||
<tt>'''FACT(0)'''</tt> | <tt>'''FACT(0)'''</tt> | ||
: returns <tt>'''1'''</tt>. | : returns <tt>'''1'''</tt>. | ||
− | |||
=== See also: === | === See also: === |
Revision as of 07:04, 2 March 2008
FACT
Returns the factorial of a number.
Syntax:
FACT(number)
- Returns number!, the factorial of number, calculated as 1*2*3*4* ... * number.
- FACT(0) returns 1 by definition.
Example:
FACT(3)
- returns 6.
FACT(0)
- returns 1.