Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter SevenMath Functions

7.1 General Math Operations

7.1.1 Overview

Aside from basic operators, Legato provides a set of extended math functions. Unless otherwise specified, all functions accept and return 64-bit float values. 

7.1.2 Functions

Floating-Point:

IsFinite — Tests for a valid floating-point value that is not infinite.

IsNaN — Tests for a valid floating-point value.

NaN — Returns a float as an invalid number (not a number or NaN).

Basic:

Absolute — Returns the absolute value (abs).

Ceiling — Rounds upward, returning the smallest integer value that is not less than the source.

Floor — Rounds downward, returning the smallest integer value that is not less than the source.

Max — Returns the larger of two floating-point or integer values.

Min — Returns the lesser of two floating-point or integer values.

Round — Rounds a number at specified place using specified mode.

Sign — Tests the input for positive, negative, or zero.

Power/Logarithmic

Exponential — Returns the exponential value of the floating-point parameter.

Log — Computes the natural log or base 10 log.

Power — Raises a base value by the specified exponent value.

SquareRoot — Returns the square root of a value.

Random Numbers

Random — Returns a random number from the pseudo-random number generator.

SeedRandom — Seeds the pseudo-random number generator.

Page revised 2024-04-22