Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FiveGeneral Functions (continued)

MoneyRemoveTrailingZeros Function

Overview

The MoneyRemoveTrailingZeros function will trim off any trailing zeros and the decimal position if it is no longer needed.

Syntax/Parameters

Syntax

string = MoneyRemoveTrailingZeros ( string source );

Parameters

source

A string containing the target data. The string cannot be larger than 128 characters.

Return Value

Returns a string that may or may not be adjusted.

Remarks

The source string is examined strictly on the basis of trailing zeros and a period character. The syntax of the number (even if the source is text) is not tested. Passing “.00” or “.” will return an empty string.

Related Functions

Platform Support

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

Legato IDE, Legato Basic