2017-10-10 14:55:21 +00:00
[[CDBL]] converts a value to the closest [[DOUBLE]]-precision value.
2015-08-02 12:12:44 +00:00
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
: {{Parameter|doubleValue#}} = [[CDBL]]({{Parameter|expression}})
2015-08-02 12:12:44 +00:00
2021-02-18 17:11:22 +00:00
{{PageParameters}}
2017-10-10 14:55:21 +00:00
* {{Parameter|expression}} is any [[TYPE]] of literal or variable numerical value or mathematical calculation.
2015-08-02 12:12:44 +00:00
2016-03-18 11:36:04 +00:00
{{PageDescription}}
* Rounds to the closest [[DOUBLE]] floating decimal point value.
2017-10-10 14:55:21 +00:00
* Also can be used to define a value as [[DOUBLE]]-precision up to 15 decimals.
2015-08-02 12:12:44 +00:00
2017-10-10 14:55:21 +00:00
{{PageExamples}}
2016-03-18 11:36:04 +00:00
''Example:'' Prints a double-precision version of the single-precision value stored in the variable named A.
2015-08-02 12:12:44 +00:00
{{CodeStart}}
A = 454.67
{{Cl|PRINT}} A; {{Cl|CDBL}}(A)
{{CodeEnd}}
2016-03-18 11:36:04 +00:00
{{OutputStart}} 454.67 454.6700134277344
2015-08-02 12:12:44 +00:00
{{OutputEnd}}
2016-03-18 11:36:04 +00:00
: The last 11 numbers in the double-precision number change the value in this example, since A was previously defined to only two-decimal place accuracy.
2015-08-02 12:12:44 +00:00
{{PageSeeAlso}}
2016-03-18 11:36:04 +00:00
* [[CINT]], [[CLNG]]
* [[CSNG]], [[_ROUND]]
2015-08-02 12:12:44 +00:00
2019-04-15 01:15:33 +00:00
{{PageNavigation}}