Mathematical functions

Function

Description

function Sqr(const X: Double): Double

Square

function Max(const A, B: Double): Double

The greater of the two numbers

function Min(const A, B: Double): Double

The lesser of the two numbers

function Round(e: Extended): Integer

Rounds to the nearest integer

function Trunc(e: Extended): Integer

Truncates the fractional part

function Int(e: Extended): Integer

Returns the integer part of the number

function Frac(X: Extended): Extended

Returns the fractional part

function Sqrt(e: Extended): Extended

Square root

function Abs(e: Extended): Extended

Absolute value

function Sin(e: Extended): Extended

Sine

function Cos(e: Extended): Extended

Cosine

function ArcTan(X: Extended): Extended

Arctangent

function Tan(X: Extended): Extended

Tangent

function Exp(X: Extended): Extended

Exponential

function Ln(X: Extended): Extended

Natural logarithm

function Pi: Extended

Pi