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 |
| Modifier and Type | Method and Description |
|---|---|
static String |
format(BigDecimal bd) |
static String |
format(double d) |
static String |
format(float f) |
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 static String format(float f)
public static String format(double d)
public static String format(BigDecimal bd)
Copyright © 2005–2023 OpenHMS. All rights reserved.