Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter ElevenSGML Functions (continued)

XDXCreatePrecisionComponent Function

Overview

The XDXCreatePrecisionValue function processes precision and power properties and returns a precision value for creating an engram.

Syntax/Parameters

Syntax

string = XDXCreatePrecisionComponent ( [string precision], [string power] );

string = XDXCreatePrecisionComponent ( [int precision], [int power] );

Parameters

precision

An int or string representing the value. For infinite, the string “inf” or “i” must be used. If the value is omitted or an empty string, the default value is “inf”.

power

An int or string representing the value. For default, the string “default” or “d” must be used. If the value is omitted or an empty string, the default value is “d”.

Return Value

A string containing the value representing the precision to be used as a property in an engram or empty on failure. Use the GetLastError function to retrieve a formatted error code and GetLastErrorMessage for additional detail.

Remarks

For convenience both string and integer values may be supplied (or mixed) as required. For infinite, a string must be used.

The range for both parameters is +15 to -15.

Power is essentially the same as scaling with iXBRL.

The reciprocal function is XDXGetPrecisionProperties.

Related Functions

Platform Support

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

Legato IDE, Legato Basic