Math Floor Lua

The floor method rounds a number downwards to the nearest integer and returns the result.
Math floor lua. The math randomseed function sets a seed for the pseudo random generator. A number representing the largest integer less than or equal to the specified number. Math floor x returns the largest integer smaller than or equal to x. Math floor x returns the largest integer smaller than or equal to x.
If the passed argument is an integer the value will not be rounded. In other case lua casts upper into an integer sometimes giving math floor upper and others math ceil upper with unexpected results the same for lower. Because floor is a static method of math you always use it as math floor rather than as a method of a math object you created math is not a constructor. Math floor x parameters x a number.
Equal seeds produce equal sequences of numbers. A b a math floor a b b that is it is the remainder of a division that rounds the quotient. The list of functions availa.