|
|
@ -48,13 +48,13 @@ public class RSASecure implements ISecure { |
|
|
|
Object v = j.get(key); |
|
|
|
Object v = j.get(key); |
|
|
|
String vx; |
|
|
|
String vx; |
|
|
|
if (v instanceof Double) { |
|
|
|
if (v instanceof Double) { |
|
|
|
vx = String.format("%.2f", v); |
|
|
|
vx = String.format("%s", BigDecimal.valueOf((Double) v).stripTrailingZeros()); |
|
|
|
} else if (v instanceof Float) { |
|
|
|
} else if (v instanceof Float) { |
|
|
|
vx = String.format("%.2f", v); |
|
|
|
vx = String.format("%s", BigDecimal.valueOf((Float) v).stripTrailingZeros()); |
|
|
|
} else if (v instanceof Boolean) { |
|
|
|
} else if (v instanceof Boolean) { |
|
|
|
vx = String.format("%s", v); |
|
|
|
vx = String.format("%s", v); |
|
|
|
} else if (v instanceof BigDecimal) { |
|
|
|
} else if (v instanceof BigDecimal) { |
|
|
|
vx = String.format("%.2f", v); |
|
|
|
vx = String.format("%s", ((BigDecimal) v).stripTrailingZeros()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
vx = String.valueOf(v); |
|
|
|
vx = String.valueOf(v); |
|
|
|
} |
|
|
|
} |
|
|
|