public final class NumberFormats extends Object
Modifier and Type | Method and Description |
---|---|
static NumberFormat |
format(int precision)
Returns a number format that formats a number with the given
number of precision digits.
|
static NumberFormat |
toStringFormat()
Returns the NumberFormat that uses the standard text representation
(toString) for numbers.
|
public static NumberFormat format(int precision)
precision
- number of digits past the decimal pointpublic static NumberFormat toStringFormat()
Copyright © 2015. All rights reserved.