case DECIMAL: NumberFormatContext ctx = new NumberFormatContext(options, NumberFormatMode.DEFAULT); NumberPattern pattern = select(n, decimalStandard); ctx.set(pattern); case SHORT: NumberFormatContext ctx = new NumberFormatContext(options, NumberFormatMode.SIGNIFICANT); int nDigits = integerDigits(n); int nDivisor = getDivisor_DECIMAL_LONG(nDigits);
BigDecimal n = value.amount(); boolean grouping = orDefault(options.grouping(), false); NumberFormatContext ctx = new NumberFormatContext(options, NumberFormatMode.DEFAULT); NumberPattern numberPattern = select(n, unitStandard); ctx.set(numberPattern);
NumberFormatContext ctx = new NumberFormatContext(options, SIGNIFICANT_MAXFRAC, currencyDigits); int nDigits = integerDigits(n); int nDivisor = getDivisor_CURRENCY_SHORT(nDigits);