public class NumberFormatter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NumberFormatter.NotationType
designates the format of exponent notation used by ScientificFormat
|
static class |
NumberFormatter.ScientificFormat |
Modifier and Type | Field and Description |
---|---|
static MathContext |
DBL_MATH_CONTEXT |
static MathContext |
DEC_MATH_CONTEXT |
static MathContext |
FLT_MATH_CONTEXT |
static RoundingMode |
ROUND_MODE |
Constructor and Description |
---|
NumberFormatter(DecimalFormatSymbols syms) |
public static final RoundingMode ROUND_MODE
public static final MathContext FLT_MATH_CONTEXT
public static final MathContext DBL_MATH_CONTEXT
public static final MathContext DEC_MATH_CONTEXT
public NumberFormatter(DecimalFormatSymbols syms)
public String format(float f)
public String format(double d)
public String format(BigDecimal bd)
Copyright © 2005–2024 OpenHMS. All rights reserved.