Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter Twenty-threeXBRL Functions (continued)

XBRLAddFactValues Function

Overview

The XBRLAddFactValues function add two monetary fact values and returns the sum and resulting precision.

Syntax/Parameters

Syntax

string = XBRLAddFactValues ( string value_a, string value_b,
                        [string precision_a], [string precision_a] );

Parameters

value_a

A string containing a representation of a monetary facts value.

value_b

A string containing a representation of a monetary facts value.

precision_a

An optional string containing the precision for value_a. If omitted, the default value is ‘0’.

precision_b

An optional string containing the precision for value_ab. If omitted, the default value is ‘0’.

Return Value

A string containing the result or an empty string on failure. Use the GetLastError and GetLastErrorMessage functions to retrieve error information. The extended error message will contain further information on the error.

If the function succeeds, the last error message will contain the resulting precision in the form of a string.

Remarks

Each of the values are normalized for precision and then rounded using the XBRL rules.

Rounding is performed using the “Half to Even” method. See 4.6.7.1 ‘Correct to n Significant Figures’, ‘Rounding’ and ‘Truncation’ in the XBRL 2.1 Specification.

Related Functions

Platform Support

GoFiler Complete, GoFiler Corporate, GoXBRL