| pi | 円周率 | math.pi | 3.1415926535898 |
| abs | 絶対値 | math.abs(-2012) | 2012 |
| ceil | 切り上げ | math.ceil(9.1) | 10 |
| floor | 切り捨て | math.floor(9.9) | 9 |
| max | 引数の最大値 | math.max(2,4,6,8) | 8 |
| min | 引数の最小値 | math.min(2,4,6,8) | 2 |
| x^y | x の y 乗を計算(Lua 5.3 以降、math.pow は削除され、^ 演算子を使用) | 2^16 | 65536.0 |
| sqrt | 平方根 | math.sqrt(65536) | 256.0 |
| modf | 整数部と小数部を取得 | math.modf(20.12) | 20 0.12 |
| randomseed | 乱数のシードを設定 | math.randomseed(os.time()) | |
| random | 乱数を取得 | math.random(5,90) | 5~90 |
| rad | 度をラジアンに変換 | math.rad(180) | 3.1415926535898 |
| deg | ラジアンを度に変換 | math.deg(math.pi) | 180.0 |
| exp | e の x 乗 | math.exp(4) | 54.598150033144 |
| log | x の自然対数を計算 | math.log(54.598150033144) | 4.0 |
| log (底を指定) | 指定した底の対数を計算(Lua 5.3 以降、math.log10 は削除され、math.log(x, 10) を使用) | math.log(1000, 10) | 3.0 |
| frexp | 引数を x * (2 ^ y) の形式に分解 | math.frexp(160) | 0.625 8 |
| ldexp | x * (2 ^ y) を計算 | math.ldexp(0.625,8) | 160.0 |
| sin | サイン | math.sin(math.rad(30)) | 0.5 |
| cos | コサイン | math.cos(math.rad(60)) | 0.5 |
| tan | 正接 | math.tan(math.rad(45)) | 1.0 |
| asin | 逆正弦 | math.deg(math.asin(0.5)) | 30.0 |
| acos | 逆余弦 | math.deg(math.acos(0.5)) | 60.0 |
| atan | 逆正接 | math.deg(math.atan(1)) | 45.0 |