GoFiler Legato Script Reference
Legato v 1.5b Application v 5.24b
|
Table of Contents | < < Previous | Next >> |
Chapter Twenty-three — XBRL Functions (continued)
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
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.