|
DEC64 is a proposed format for storing integer and decimal numbers in a computer. Its aim is to solve some drawbacks of the very widely-used format described by IEEE 754. Namely, in languages which implement IEEE 754, some very simple arithmetic operations can have unexpected results due to rounding errors. DEC64 was proposed by Douglas Crockford. == Example == In Javascript (which implements IEEE 754), the expression 0.1 + 0.2 will have a result which is not exactly 0.3 :console.log(0.1 + 0.2) / * 0.30000000000000004 */ console.log(0.1 + 0.2 == 0.3) / * false */ DEC64 attempts to solve such cases while maintaining desirable properties of IEEE 754. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Dec64」の詳細全文を読む スポンサード リンク
|