·  VB - Syntax - Variables - Single

 

- Info:

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

  - Single data type is an 32-bit variable which can store value from [-3.402823e38, -1.401298e-45] and

    [1.401298e-45, 3.402823e38].

 

- Procedure:

  - Create VB Application Test.vb

 

    Test.vb

    Sub Main()

    

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

      Dim value As Single

          value = -3.402823E+38

          value = -1.401298E-45

          value = 1.401298E-45

          value = 3.402823E+38

    

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

      MsgBox (value)

    

    End Sub