Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter Twenty-threeXBRL Functions (continued)

XBRLApplyPrecision Function

Overview

The XBRLApplyPrecision function applies a precision to a value with optional rounding.

Syntax/Parameters

Syntax

string = XBRLApplyPrecision ( string value, string precision, [boolean round] );

Parameters

value

A string containing a representation of a monetary facts value.

precision

A string containing the precision for value.

round

An optional boolean value specifying whether to round the during processing. If omitted, the default value is TRUE.

Return Value

A string containing the revised fact value or an empty string on failure. The extended error message will contain further information on the error.

Remarks

The precision is applied and either truncated or rounded depending on the round parameter.

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