Previous Topic: Date Data TypeNext Topic: Integer Data Type


Double Data Type

The double numeric data type can have a decimal point. The traditional syntax is used for real numbers. A real value is represented as the part of the number, followed by a decimal point and the fractional part of the number. This type can store real numbers from -1.7976931348623157E308 to 1.7976931348623157E308.

Floating-point literals can be represented using exponential notation—a real number followed by the letter e (or E), followed by an optional plus (+) or minus (-) sign, followed by an integral exponent, in the following format:

[digits][.digits][{E|e}[{+|-}]digits]

Examples

2.718

2345.789

7.748E-5