Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8? Click here and leave these dusty old pages behind!

Info
titleAvailability

This routine is available starting with SIL Engine™ 2.5.


Syntax

fact(number)

Description


Excerpt

Returns the factorial of a number.

The factorial of a number n is equal to 1*2*3*...* n



Parameters

ParameterTypeRequiredDescription
numberNumberYesNon-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)
showLabelsfalse
showSpacefalse
cqllabel = "math_routines"
labelsmath_routines