math/ factorial.bi

Summary
math/ factorial.bi
LicenseCopyright © 2009, FreeBASIC Extended Library Development Group
ext.math
Functions
factorialComputes a factorial number up to MAX_FACTORIAL
Constants
MAX_FACTORIAL

License

Copyright © 2009, FreeBASIC Extended Library Development Group

Distributed under the FreeBASIC Extended Library Group license.  See accompanying file LICENSE.txt or copy at http://code.google.com- /p- /fb-extended-lib- /wiki- /License

ext.math

Summary

Functions

factorial

declare function factorial (byval n as double) as double

Computes a factorial number up to MAX_FACTORIAL

Parameters

nthe number to calculate the factorial of.

Returns

The factorial of n.

Constants

MAX_FACTORIAL

const MAX_FACTORIAL = 256#
declare function factorial (byval n as double) as double
Computes a factorial number up to MAX_FACTORIAL
const MAX_FACTORIAL = 256#