SQL> SELECT TO_CHAR(, '9990.00') A, TO_CHAR(5.8, '9990.00') B, TO_CHAR(., '9990.00') C FROM dual; A B C ---------------- ---------------- ---------------- 123.00 5.80 0.46 SQL> ‘9990.00’表示转换的数字的最大数,可根据自身表里面的number字段大小,进行调整.比如number(19,2)可变成 : ltrim(
1. BigDecimal 类型数据 的创建,构造函数 有 public BigDecimal(BigInteger intVal, long val, int scale, int prec); public BigDecimal(char[] in, int offset, int len) ; public BigDecimal(String val); public BigDecimal(double val); public BigDecimal(BigInteger val); pu