Explicit Conversion

The program demonstrates using the numeric conversion functions to explicitly convert between data types.

'Explicit Conversion
'Demonstrates explicitly converting data types.
'******************************************************

Dim As Double myDbl
Dim As Integer myInt

'Set myDbl to a double value
myDbl = 5.46
'Assign myInt the double, will be converted to int
myInt = Cint(myDbl)

Print "myDbl =";myDbl
Print "myInt ="; myInt

Sleep
End