o be able to write Java programs that deal with finances, you need to know about the BigDecimal class and numeric formatting. The first step to teaching you both of those topics is to first create Big
虽然几乎每种处理器和编程语言都支持浮点运算,但大多数程序员很少注意它。这容易理解 ― 我们中大多数很少需要使用非整数类型。除了科学计算和偶尔的计时测试或基准测试程序,其它情况下几乎都用不着它。同样,大多数开发人员也容易忽略 java.math.BigDecimal 所提供的任意精度的小数 ― 大多数应用程序不使用它们。然而,在以整数为主的程序中有时确实会出人意料地需要表示非整型数据。例如,JDBC
Copyright © 2005-2023 51CTO.COM 版权所有 京ICP证060544号