* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / mbas / Test / tests / conversions / ExpConversionDoubletoDecimalA.vb
1 'Author:
2 '   V. Sudharsan (vsudharsan@novell.com)
3 '
4 ' (C) 2005 Novell, Inc.
5
6 Module ExpConversionDoubletoDecimalA
7         Sub Main()
8                         Dim a as Decimal
9                         Dim b as Double = -4.94065645841247e-324
10                         a = CDec(b)
11                         if a<>-0 Then
12                                 Throw New System.Exception("Double to Decimal Conversion is not working properly. Expected 0 but got " &a)              
13                 End if          
14         End Sub
15 End Module