Navigation:  thinBasic Modules > Math > Combinatorics functions >

Factorial

Previous pageReturn to chapter overviewNext page

 

Description

 

Returns the product of consecutive numbers 1 through n..

 

Syntax

 

n = Factorial(N)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

N

Number

No

Number of which you want to calculate factorial

 

Remarks

 

Restrictions

 

Max N allowed: 1754

 

See also

 

Examples

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com