Double Class

A Double is an intrinsic data type in REALbasic. A Double is a number that can contain a decimal value, i.e., a real number.

It can take on a value between 2.2250738585072013 e-308 and 1.7976931348623157 e+308. In other languages, REALbasic's Double may be referred to as a double precision real number. Because Doubles are numbers, you can perform mathematical calculations on them. Doubles use 8 bytes of memory. The default value of a Double is 0.0.

The VarType function returns a value of 5 when passed a Double.

# Example

The Single and Double data types allow you to store and manage floating point numbers.

Dim d as Double
d=3.14159265358979323846264338327950

# See Also

Boolean, Byte, Color, Int8, Int16, Int32, Int64, Ptr, Single, String, UInt8, UInt16, UInt32, UInt64, Variant data types; -, +, *, /, <, <=, =, >=, >, <>, \, IsNumeric, Mod, Val, Str, VarType functions; Dim statement.