Husky110
Husky110

Reputation: 741

What is the maximum of the number-format in Oracle?

I want to know what is the maximum value the number-format? For example int32 can handle 4.294.967.296 values.

Upvotes: 13

Views: 44872

Answers (1)

Sachin Shanbhag
Sachin Shanbhag

Reputation: 55489

Based on this Oracle's documentation:

The NUMBER datatype stores fixed and floating-point numbers. Numbers of virtually any magnitude can be stored and are guaranteed portable among different systems operating Oracle, up to 38 digits of precision.

The following numbers can be stored in a NUMBER column:

  • Positive numbers in the range 1 x 10-130 to 9.99..9 x 10125 with up to 38 significant digits
  • Negative numbers from -1 x 10-130 to 9.99..99 x 10125 with up to 38 significant digits
  • Zero
  • Positive and negative infinity (generated only by importing from an Oracle Version 5 database)

There's also this other documentation which summarizes very well the types and precision for numeric and other data types as well.

Upvotes: 18

Related Questions