public double getRoundingIncrement(CurrencyUsage Usage) {
        CurrencyMetaInfo info = CurrencyMetaInfo.getInstance();
        CurrencyDigits digits = info.currencyDigits(subType, Usage);

        int data1 = digits.roundingIncrement;

        // If there is no rounding return 0.0 to indicate no rounding.
        // This is the high-runner case, by far.
        if (data1 == 0) {
            return 0.0;
        }

        int data0 = digits.fractionDigits;

        // If the meta data is invalid, return 0.0 to indicate no rounding.
        if (data0 < 0 || data0 >= POW10.length) {
            return 0.0;
        }

        // Return data[1] / 10^(data[0]). The only actual rounding data,
        // as of this writing, is CHF { 2, 25 }.
        return (double) data1 / POW10[data0];
    }
public double getRoundingIncrement ( CurrencyUsage Usage ) { CurrencyMetaInfo info = CurrencyMetaInfo . getInstance ( ) ; CurrencyDigits digits = info . currencyDigits ( subType , Usage ) ; int data1 = digits . roundingIncrement ; if ( data1 == 0 ) { return 0.0 ; } int data0 = digits . fractionDigits ; if ( data0 < 0 || data0 >= POW10 . length ) { return 0.0 ; } return ( double ) data1 / POW10 [ data0 ] ; }
Returns the rounding increment for this currency, or 0.0 if no
rounding is done by this currency with the Usage.
@param Usage the usage of currency(Standard or Cash)
@return the non-negative rounding increment, or 0.0 if none