Kodall
Packages

Package: math

The math package returns decimals with a precision limited to 13 decimal places.

The math package returns decimals with a precision limited to 13 decimal places.

Examples

Math logBase example

ONE Workflow
function atomic logBase(logNumber as decimal, base as decimal) as decimal {
    return math->log(logNumber) / math->log(base);}

Returns log of any number in any base.

Methods

abs

ONE Workflow
function abs(input as decimal) as decimal

Returns the absolute value of the input.

cos

ONE Workflow
function cos(input as decimal) as decimal

Returns the cosine value of the input.

cot

ONE Workflow
function cot(input as decimal) as decimal

Returns the cotangents value of the input.

e

ONE Workflow
function e() as decimal

Returns the value of e.

exp

ONE Workflow
function exp(input as decimal) as decimal

Returns the e raised to the power of the input.

log

ONE Workflow
function log(input as decimal) as decimal

Returns the log value of the input.

log10

ONE Workflow
function log10(input as decimal) as decimal

Returns the log value in base 10 of the input.

log2

ONE Workflow
function log2(input as decimal) as decimal

Returns the log value in base 2 of the input.

pi

ONE Workflow
function pi() as decimal

Returns the value of pi.

pow

ONE Workflow
function pow(base as decimal, exponent as decimal) as decimal

Returns the value of the base raised to the exponent value.

random

ONE Workflow
function random() as decimal

Returns a random decimal.

round

ONE Workflow
function round(input as decimal, precision as int) as decimal

Returns the input value rounded to the precision.

sin

ONE Workflow
function sin(input as decimal) as decimal

Returns the sine value of the input.

sqrt

ONE Workflow
function sqrt(input as decimal) as decimal

Returns the square value of the input.

tan

ONE Workflow
function tan(input as decimal) as decimal

Returns the tangent value of the input.