ID : 310
DefDbl
Function
To declare local variable for Double Precision Real Number Type.
Syntax
DefDbl variable name [=initial value][,variable name 2[=initial value 2]...]
Guaranteed entry
- Variable name
- Designate a variable name. Each name must be specified in accordance with the Naming convention.
- Initial value
- Designate an initial value for the variable you created.
- Variable name 2, initial value 2
- You can declare multiple local variables of Double Precision Real Number Type at the same time. ", (comma)" can be used for a separation.
Description
-
Related Terms
Attention
This command is RC7M compatible, but an unrecommended command. This might be no longer supported, so use Dim for future use.
When you don't put any value in initial value, "0" will be assigned.
Example
'!TITLE "Declaration of Double Precision Real Number Type Data"
' Assign a value to declared variable and display it on the message output window
Sub Sample_DefDbl
' Declare a variable named aaa in double precision real number type data
DefDbl aaa
' Declare a variable named bbb in double precision real number type data
DefDbl bbb
aaa = 123456789.888888
bbb = 123456789.8888888
' Display "123456789.88888" on the message output window
PrintDbg aaa
' Display "123456789.88889" on the message output window
PrintDbg bbb
End Sub
ID : 310