·  VB .NET - 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 .NET Console Application Test.vb

 

    Test.vb

    Module Module1

    

      Sub Main()

    

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

        Dim value As Single

            value = -3.402823e38

            value = -1.401298e-45     

            value =  1.401298e-45    

            value =  3.402823e38     

    

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

        MsgBox(value)

     

      End Sub

    

    End Module