Oracle Floats vs Number

后端 未结 5 1521
孤街浪徒
孤街浪徒 2020-12-09 10:21

I\'m seeing conflicting references in Oracles documentation. Is there any difference between how decimals are stored in a FLOAT and a NUMBER types in the database?

A

5条回答
  •  时光说笑
    2020-12-09 10:41

    Oracle's Number is in fact a Decimal (base-10) floating point representation... Float is just an alias for Number and does the exact same thing.

    if you want Binary (base-2) floats, you need to use Oracle's BINARY_FLOAT or BINARY_DOUBLE datatypes.

    link text

提交回复
热议问题