org.das2.util.NumberFormatUtil

provide convenient and consistent access to DecimalFormat objects.

NumberFormatUtil( )


getDecimalFormat

getDecimalFormat( ) → java.text.DecimalFormat

handles the localization problem (bug 0000294) by always returning a DecimalFormat for Locale.US. (Sorry, rest of world.)

Returns:

DecimalFormat

[search for examples] [view on GitHub] [view on old javadoc] [view source]

getDecimalFormat( String spec ) → java.text.DecimalFormat