Double Data Type - Visual Basic (original) (raw)

Holds signed IEEE 64-bit (8-byte) double-precision floating-point numbers that range in value from -1.79769313486231570E+308 through -4.94065645841246544E-324 for negative values and from 4.94065645841246544E-324 through 1.79769313486231570E+308 for positive values. Double-precision numbers store an approximation of a real number.

Remarks

The Double data type provides the largest and smallest possible magnitudes for a number.

The default value of Double is 0.

Programming Tips

' Visual Basic expands the 4 in the statement Dim dub As Double = 4R to 4.0:  
Dim dub As Double = 4.0R  

Appending the identifier type character # to any identifier forces it to Double. In the following example, the variable num is typed as a Double:

Dim num# = 3  

See also