Convert.ToSingle : Convert « System « VB.Net by API






Convert.ToSingle

  
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.Convert.FromBase64String
2.Convert.ToBase64String
3.Convert.ToInt32
4.Convert.ToInt64
5.Convert.ToUInt16