Skip to main content

math

Availability

Device, Agent

Description

Squirrel’s math library provides a set of mathematical functions you can incorporate into your agent or device code. Unlike standard Squirrel, imp Squirrel requires that all of these functions are prefixed with math., for example:

local answer = math.exp(45.01);

This is how they are listed here.

The math object has the following member functions: