Operator purpose equal to not equal to less than greater than less than or equal to greater than or equal to.
Math floor lua corona.
If the fractional portion of number is 0 5 or greater the argument is rounded to the next higher integer.
Solar2d lets you build games apps for all major platforms including ios android kindle apple tv android tv macos and windows.
Math floor x rounds x down to the nearest int.
These docs are very out of date.
Math cosh x returns the hyperbolic cosine of x.
If the fractional portion of number is less than 0 5 the argument is rounded to the next lower integer.
Get the free toolset.
The number you put in must have a decimal.
Math cos x returns the cosine of x assumed to be in radians.
A b a math floor a b b as in the remainder of a division that rounds the quotient towards minus infinity.
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.
You will be redirected to the new docs in a few seconds.
The number you put in must have a decimal.
Math type x gets the numerical type of x either integer float or nil.
The relational operators in lua are.
Math floor rounds the given number to the next lowest integer.
Notes equality first.
Whether you re new to corona or want to take your app to the next level we ve got a wealth of resources for you including extensive documentation api reference sample code and videos.
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.
Math fmod x y get the remainder from dividing x y.
Equal seeds produce equal sequences of numbers.
These operators always result in true or false.
Math deg x returns the angle x given in radians in degrees.
The math randomseed function sets a seed for the pseudo random generator.
Math ult x y get a boolean if x as an unsigned int is less than y.
If you are certain you want to see the old docs click.
Rounds number to the nearest integer following the same rules as the javascript version i e.
Math exp x returns the value e power x.