Skip to content

math Module#

Lua math helpers exposed by DCS.

Constants#

Constant Type Description
huge number Infinity.
pi number 3.1415926535898.

Functions#


abs#

math.abs(...)

acos#

math.acos(...)

asin#

math.asin(...)

atan#

math.atan(...)

atan2#

math.atan2(...)

ceil#

math.ceil(...)

cos#

math.cos(...)

cosh#

math.cosh(...)

deg#

math.deg(...)

exp#

math.exp(...)

floor#

math.floor(...)

fmod#

math.fmod(...)

frexp#

math.frexp(...)

ldexp#

math.ldexp(...)

log#

math.log(...)

log10#

math.log10(...)

max#

math.max(...)

min#

math.min(...)

mod#

math.mod(...)

modf#

math.modf(...)

pow#

math.pow(...)

rad#

math.rad(...)

random#

math.random(...)

randomseed#

math.randomseed(...)

sin#

math.sin(...)

sinh#

math.sinh(...)

sqrt#

math.sqrt(...)

tan#

math.tan(...)

tanh#

math.tanh(...)