Math ult x y get a boolean if x as an unsigned int is less than y.
Math floor lua corona.
Math type x gets the numerical type of x either integer float or nil.
Modulo is defined as.
Syntax math round x x required number.
Math exp x returns the value e power x.
If the fractional portion of number is 0 5 or greater the argument is rounded to the next higher integer.
These docs are very out of date.
Math modf x get the integer and fractional part for x 2 5 2 0 5 math tointeger x converts x to an integer returns nil otherwise.
Math deg x returns the angle x given in radians in degrees.
Math cos x returns the cosine of x assumed to be in radians.
Get the free toolset.
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.
A b a math floor a b b as in the remainder of a division that rounds the quotient towards minus infinity.
Math floor x rounds x down to the nearest int.
Solar2d lets you build games apps for all major platforms including ios android kindle apple tv android tv macos and windows.
If the fractional portion of number is less than 0 5 the argument is rounded to the next lower integer.
The number you put in must have a decimal.
You will be redirected to the new docs in a few seconds.
Equal seeds produce equal sequences of numbers.
The math randomseed function sets a seed for the pseudo random generator.
These operators always result in true or false.
Rounds number to the nearest integer following the same rules as the javascript version i e.
Math ceil x returns the smallest integer larger than or equal to x.
Math floor rounds the given number to the next lowest integer.
Math cosh x returns the hyperbolic cosine of x.
The relational operators in lua are.
The number you put in must have a decimal.
Operator purpose equal to not equal to less than greater than less than or equal to greater than or equal to.
Math fmod x y get the remainder from dividing x y.