float和double只能用来做科学计算或者是工程计算,在商业计算中我们要用java.math.BigDecimal 具体例子见http://blog.csdn.net/fenglibing/article/details/1765187