Logo Search packages:      
Sourcecode: icu version File versions

double DecimalFormat::getRoundingIncrement ( void   ) const [virtual]

Get the rounding increment.

Returns:
A positive rounding increment, or 0.0 if a rounding increment is not in effect.
See also:
setRoundingIncrement
getRoundingMode
setRoundingMode ICU 2.0

Get the rounding increment.

Returns:
A positive rounding increment, or 0.0 if rounding is not in effect.
See also:
setRoundingIncrement
getRoundingMode
setRoundingMode

Definition at line 2870 of file decimfmt.cpp.

References DigitList::getDouble(), and NULL.

Referenced by operator=(), IntlTestDecimalFormatAPI::testAPI(), and unum_getDoubleAttribute().

                                                 {
    if (fRoundingIncrement == NULL) {
        return 0.0;
    } else {
        return fRoundingIncrement->getDouble();
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index