| pi | constante pi | math.pi | 3.1415926535898 |
| abs | valeur absolue | math.abs(-2012) | 2012 |
| ceil | arrondi supérieur | math.ceil(9.1) | 10 |
| floor | arrondi inférieur | math.floor(9.9) | 9 |
| max | plus grande valeur des paramètres | math.max(2,4,6,8) | 8 |
| min | plus petite valeur des paramètres | math.min(2,4,6,8) | 2 |
| x^y | calculer x à la puissance y (depuis Lua 5.3, math.pow a été supprimé et remplacé par l’opérateur ^) | 2^16 | 65536.0 |
| sqrt | racine carrée | math.sqrt(65536) | 256.0 |
| modf | parties entière et décimale | math.modf(20.12) | 20 0.12 |
| randomseed | définir la graine aléatoire | math.randomseed(os.time()) | |
| random | nombre aléatoire | math.random(5,90) | 5~90 |
| rad | convertir des degrés en radians | math.rad(180) | 3.1415926535898 |
| deg | convertir des radians en degrés | math.deg(math.pi) | 180.0 |
| exp | e à la puissance x | math.exp(4) | 54.598150033144 |
| log | calculer le logarithme naturel de x | math.log(54.598150033144) | 4.0 |
| log (base indiquée) | calculer le logarithme dans la base indiquée (depuis Lua 5.3, math.log10 a été supprimé et remplacé par math.log(x, 10)) | math.log(1000, 10) | 3.0 |
| frexp | décomposer le paramètre sous la forme x * (2 ^ y) | math.frexp(160) | 0.625 8 |
| ldexp | calculer x * (2 ^ y) | math.ldexp(0.625,8) | 160.0 |
| sin | sinus | math.sin(math.rad(30)) | 0.5 |
| cos | cosinus | math.cos(math.rad(60)) | 0.5 |
| tan | tangente | math.tan(math.rad(45)) | 1.0 |
| asin | arcsinus | math.deg(math.asin(0.5)) | 30.0 |
| acos | arccosinus | math.deg(math.acos(0.5)) | 60.0 |
| atan | arctangente | math.deg(math.atan(1)) | 45.0 |