Question

What column type in Oracle 10g can be used to store any value of java double up to and including Double.MAX_VALUE and Double.MIN_VALUE?

Was it helpful?

Solution

From the Oracle SQL Reference:

The NUMBER datatype stores zero as well as positive and negative fixed numbers with absolute values from 1.0 x 10^-130 to (but not including) 1.0 x 10^126.

It looks like you may need BINARY_DOUBLE:

Maximum positive finite value: 1.79769313486231E+308

Minimum positive finite value: 2.22507485850720E-308

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top