FBWiki : KeyPgDouble

FBWiki :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

DOUBLE


Standard data type: 64 bit floating point

Syntax:
dim variable as Double

Description:
Double is a 64-bit, floating-point data type used to store precise decimal numbers. They can hold values in a range of -2.2E-308 to +1.7E+308. Its precision is of 15 decimal digits. They are similar to Single data types but more precise and with an extended range.

Doubles have a greater range and precision than Singles, they still have limited accuracy which can lead to significant inaccuracies if not used properly. They are dyadic numbers - i.e. they can only accurately hold multiples of powers of two, which will lead to inaccuracies in most base-10 fractions.

Examples:
'Example of using a double variable.

Dim a As Double
a = 1.985766472453666
Print a

Sleep


Differences from QB:

See also:

Back to Standard Data Types

There is one comment on this page. [Display comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.0



sf.net phatcode