Creates a new number format instance. This generally should be avoided in favor of the static getFormat
function, which will create and cache an instance so that later calls share the same instance.
Formats the specified number (or Java long
, BigInteger
or BigDecimal
value) using this instance's pattern.
String
Static
formatFormats the specified number (or Java long, BigInteger or BigDecimal value) using the cached format matching the given pattern string.
String
Static
geta number format instance matching the specified format. If this format has not been specified before, a new instance will be created and cached for later reuse. Prefer this method to calling the constructor directly to take advantage of caching
dh.i18n.NumberFormat
Static
parse
Exported wrapper of the GWT NumberFormat, plus LongWrapper support
Utility class to parse and format numbers, using the same format patterns as are supported by the standard Java implementation used in the Deephaven server and swing client. Works for numeric types including BigInteger and BigDecimal.