'Author:
'   V. Sudharsan (vsudharsan@novell.com)
'
' (C) 2005 Novell, Inc.

Module ExpConversionDoubletoSingleB
    Function Main() As Integer
        Dim a As Single
        Dim b As Double = 4.94065645841247E+300
        a = CSng(b)
        If a <> Single.PositiveInfinity Then
            System.Console.WriteLine("Double to Single Conversion is not working properly. Expected Infinity but got " & a) : Return 1
        End If
    End Function
End Module
