GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Seven — Math Functions
Aside from basic operators, Legato provides a set of extended math functions. Unless otherwise specified, all functions accept and return 64-bit float values.
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-12-13
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.