第 2 章 30 定点数(Fixed-point numbers),可以被认为能分解成整数部分和小数部分。 日期和时间,可分别分解成年/月/日和小时/分钟/秒。
基于6个网页-相关网页
fixed point numbers 定点数 ; 定长浮点型
SQL-92 includes a decimal data type, which is an exact numeric type for representing fixed point decimal Numbers and performs basic arithmetic operation on decimal Numbers.
SQL - 92包括DECIMAL数据类型,它是用于表示定点小数的精确数字类型,它可以对小数进行基本的算术运算。
If you need to represent fixed point Numbers, such as dollars and cents, use BigDecimal instead.
如果需要表示定点数(譬如,几美元和几美分),则使用BigDecimal。
In Listing 2, I reopen the Numeric class (which handles both fixed and floating-point Numbers) to add the gram and pound methods.
在清单2中,我重新打开了numeric类(其处理固定和浮点数字)以便添加gram和pound方法。
应用推荐