Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 24.0

Div
Classe2e-refDiv
Rp


Syntax
Code Block
languagenone
set aString = aFloat.printFloatExpression(aFormat, aLocale?)
Semantics printFloatExpression() initializes a String object from a Float using the given format expression. The format expression is a string with placeholders for number variables. The syntax is described in Number Formatting.
SubstitutablesaFloat Can be any variable or object attribute having the type Float
aFormat Can be any variable or object attribute having the type String. The pattern syntax is described in Number Formatting.
aLocale

Optional variable or object attribute having the type Basic Components::Basic Behavior::NumbersLocale.

This parameter can be used to define the following properties:

  • negativeSign: characters used to signify negative values. Usually '-'
  • positiveSign: characters used to signify positive values. Usually '+'
  • thousandsSeparator: characters used to separate units of thousand, e.g. ','
  • decimalPoint: e.g. '.'
  • currencySymbol: e.g. '$'
    Default values are given by the system locales.
Examples
Code Block
languagenone
set aString = aFloat.printFloatExpression("999.99");

Formatting examples can be found in Number Formatting.

Multiexcerpt include
MultiExcerptNameformatExpressions
nopaneltrue
PageWithExcerptINTERNAL:_examples_BRIDGE

Panel
titleRelated Pages: