Garry's Mod Wiki

math.Factorial

  number math.Factorial( number val_in )

Description

Simple function that calculates factorial of a whole number.

Arguments

1 number val_in
An whole number to get a factorial of. Decimal numbers will be treated as whole numbers.

Returns

1 number
The factorial of given number.