Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter SevenMath Functions (continued)

Log Function

Overview

The Log function returns a natural log e or base 10 log of a value.

Syntax/Parameters

Syntax

float = Log ( float x, [int base] );

Parameters

x

A float containing a numeric source value. If x is not a float, the data will be converted to a 64-bit floating-point number.

base

An optional value as 10 for a base 10 logarithm.

Return Value

Returns a float as the natural logarithm (base e) or base 10 of x if successful. Use the GetLastError function to retrieve error information.

Remarks

If x is 0, the return value is #INF and the last error is set to ERROR_OVERFLOW. If the base value is incorrect, the return value is also #INF and the last error is set to ERROR_RANGE.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic