rbf_formatCurrency()

Warning: Support for using this method with external objects (such as those mapped to external tables, to OpenEdge Service objects, or through a HDP connection) is a beta feature. This method is supported in production systems, except for external objects.

Purpose

Formats a given number into a currency string.

Syntax

rbf_formatCurrency(value, currSymbol, showZero, decPlaces, thsSep)

Parameters

value

The number to format

currSymbol

currency symbol ($ by default)

showZero

If true, empty and NaN values are treated as "$0.00", otherwise as empty string ""

decPlaces

The number of decimal places (2 by default)

thsSep

The thousands separator (, by default)

Note: This API is supported in portals as well.