2017-10-10 14:55:21 +00:00
|
|
|
[[DOUBLE]] type floating point numerical values use 8 bytes per value.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
2017-10-10 14:55:21 +00:00
|
|
|
: [[DIM]] {{Parameter|variable}} [[AS]] [[DOUBLE]]
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageDescription}}
|
|
|
|
* Literal or variable values can range up to 15 decimal point places.
|
2017-10-10 14:55:21 +00:00
|
|
|
* The variable suffix type is '''#'''.
|
|
|
|
* Use DOUBLE and [[_FLOAT]] variables sparingly as they use a lot of program memory.
|
2015-08-02 12:12:44 +00:00
|
|
|
* Values returned may be expressed using exponential or [[scientific notation]] using '''E''' for SINGLE or '''D''' for DOUBLE precision.
|
2017-10-10 14:55:21 +00:00
|
|
|
* Floating decimal point numerical values cannot be [[_UNSIGNED]].
|
2015-08-02 12:12:44 +00:00
|
|
|
* Values can be converted to 8 byte [[ASCII]] string values using [[_MKD$]] and back with [[_CVD]].
|
|
|
|
* '''When a variable has not been defined or has no type suffix, the value defaults to [[SINGLE]].'''
|
2017-10-10 14:55:21 +00:00
|
|
|
* '''Warning: QBasic keyword names cannot be used as numerical variable names with or without the type suffix.'''
|
|
|
|
|
|
|
|
|
2021-02-16 01:13:07 +00:00
|
|
|
{{PageQBasic}}
|
2017-10-10 14:55:21 +00:00
|
|
|
* Results of mathematical calculations may be approximate or slow in QuickBASIC 4.5.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
|
|
* [[DIM]], [[DEFDBL]]
|
|
|
|
* [[MKD$]], [[CVD]]
|
|
|
|
* [[SINGLE]], [[_FLOAT]]
|
|
|
|
* [[LEN]]
|
|
|
|
* [[Variable Types]]
|
|
|
|
|
|
|
|
|
2019-04-15 01:15:33 +00:00
|
|
|
{{PageNavigation}}
|