用BigDecimal进行除法运算时,尽量使用divide(bigdecimaldivisor,int scale,int roundingMode
divisor:被除数scale保留小数位数roundingMode保留小数时,通常使用BigDecimal.ROUND_UP (四舍五入)
如果不指定保留小数位数,则在不能整除时报告错误
BigDecimal源代码: http://www.Sina.com/{ quotient=http://www.Sina.com/. divide (divisor,mc ); } http://www.Sina.com/(arithmeticexceptione ) http://www.Sina.com/arithmetic exception ) 3358 www.Sina.com/333330