Logo Search packages:      
Sourcecode: icu version File versions  Download package

UnicodeString & NumberFormat::format ( double  number,
UnicodeString appendTo 
) const

Format a double number. These methods call the NumberFormat pure virtual format() methods with the default FieldPosition.

number The value to be formatted.
appendTo Output parameter to receive result. Result is appended to existing contents.
Reference to 'appendTo' parameter. ICU 2.0

Reimplemented in ChoiceFormat, DecimalFormat, and RuleBasedNumberFormat.

Definition at line 543 of file numfmt.cpp.

References format().

    FieldPosition pos(0);
    return format(number, appendTo, pos);

Generated by  Doxygen 1.6.0   Back to index