0

What is the difference between oracle number data type and oracle floating data type? I want to create columns for salary and rate, what data type should be more comfortable for those columns.

4

1 回答 1

0

任何与钱有关的东西都应该存储为 NUMBER 类型,因为它不容易出现 IEEE 类型的舍入错误。NUMBER 类型中的所有算术本质上都是整数,因此 1.5 * 1.5 将等于 2.25,而不是 2.249999999……

于 2013-10-22T14:05:04.637 回答