18 package org.turro.elephant.util;
20 import java.text.DecimalFormat;
21 import java.text.DecimalFormatSymbols;
22 import org.turro.elephant.context.Application;
30 public static String
format(Number value, String pattern) {
31 if(value ==
null)
return null;
35 public static String
format(Number value) {
36 if(value ==
null)
return null;
40 public static String
format(
double value, String pattern) {
44 public static String
format(
double value) {
48 public static String
format(
long value, String pattern) {
52 public static String
format(
long value) {
65 StringBuilder sb =
new StringBuilder(
"#,##0");
66 if(fractionDigits > 0) {
68 for(
int i = 0; i < fractionDigits; i++) {
static Locale getUsedLocale()