Floor

From M.U.G.E.N Wiki

Jump to: navigation, search



Trigger: Floor (math)

Implements the floor function. Returns the greatest integer less than or equal to its argument.

Format:
floor(exprn)
Arguments:
exprn
Expression to compute the floor of.
Return type:
int
Error conditions:
Returns SFalse if exprn evaluates to SFalse.

Examples:

1. value=floor(5.5)
  Sets value to 5.
2. value=floor(-2)
  Sets value to -2.