|  |  | 
| Line 1: | Line 1: | 
|  | __NOTOC__ |  | __NOTOC__ | 
| − | '''<translate>Supported platforms</translate>:''' [[File:Platform android]][[File:Platform ios]][[File:Platform mac]][[File:Platform pc]]<br/> | + | '''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/> | 
|  | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> |  | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | 
|  | === <translate>Description</translate> === |  | === <translate>Description</translate> === | 
| − | <translate>`math` table holds most commonly used math functions and constants</translate> | + | <translate>[[Special:MyLanguage/math|math]] table holds most commonly used math functions and constants</translate> | 
|  | {|- |  | {|- | 
|  | | style="width: 50%; vertical-align:top;"| |  | | style="width: 50%; vertical-align:top;"| | 
		Revision as of 09:37, 24 August 2018
Supported platforms: 



Available since: Gideros 2011.6
Description
math table holds most commonly used math functions and constants
| Methodsmath.abs returns absolute value of vmath.acos returns arc cosine value of v in radians
 math.asin returns arc sine value of v in radians
 math.atan returns arc tangent value of v in radians
 math.atan2 returns arc tangent value of v1/v2 in radians
 math.ceil returns smallest integer >= v
 math.cos returns cosine value of angle rad
 math.deg returns angle in degrees of radians rad
 math.exp returns e^v
 math.floor returns largest integer <= v
 math.fmod returns remainder of v1/v2 which is v1 - iV2 for some integer i
 math.frexp returns mantissa [0.5,1- and exponent values of v
 math.ldexp returns v1*2^v2
 math.log returns natural logarithm of v
 math.log10 returns logarithm 10 of v
 math.max returns maximum in a list of one or more values
 math.min returns minimum in a list of one or more values
 math.pow returns v1 raised to the power of v2
 math.rad returns angle in radians of degrees deg
 math.random returns random real [0,1-, integer [1,n] or real [1,u](with n=1-
 math.randomseed sets seed for pseudo-random number generator
 math.sin returns sine value of angle rad
 math.sqrt returns square root of v
 math.tan returns tangent value of angle rad
 
 | EventsConstantshugepi
 
 |