·  VB - Syntax - Variables - Double

 

- Info:

  - This tutorial shows how to create Double and convert it to other Data Types.

  - Double data type is an 64-bit variable which can store negative value from interval

    [1.79769313486232e308, -4.94065645841247e-324] and positive value from interval

    [4.94065645841247e-324, 1.79769313486232e308]

 

- Procedure:

  - Create VB Application Test.vb

 

    Test.vb

    Sub Main()

          

      'CREATE.------------------------------------------------------------

      Dim value As Double

          value = -1.79769313486232E+308

          value = -4.94065645841247E-324

          value =  4.94065645841247E-324

          value =  1.79769313486232E+308

    

      'DISPLAY.-----------------------------------------------------------

      MsgBox (value)

    

    End Sub