Long and Single Number : Long « Data Types « VB.Net






Long and Single Number

Long and Single Number
   
Imports System


Public Class MainClass
    Shared Sub Main(  )
        Dim l As Long
        Dim s As Single
    
        l = Long.MaxValue
        Console.WriteLine(l)
    
        s = Convert.ToSingle(l)
        s -= 1000000000000
        l = Convert.ToInt64(s)
    
        Console.WriteLine(l)
    End Sub 'Main

   
End Class


           
         
    
    
  








Related examples in the same category

1.Append long data type values to a StringBuilder object.
2.Get Long MinValue
3.Is Long value signed
4.Convert long value to string 16 based
5.Convert string value to UInt64
6.And two UInt64 values
7.Use the Sign(Long) method to determine the sign of a Long value and display it to the console.
8.Use CInt to convert long to Integer