projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
In tests/attributes:
[mono.git]
/
mcs
/
mbas
/
Test
/
tests
/
conversions
/
ExpConversionStringtoSingleA.vb
1
'Author:
2
' V. Sudharsan (vsudharsan@novell.com)
3
'
4
' (C) 2005 Novell, Inc.
5
6
Module ExpConversionStringtoSingleA
7
Sub Main()
8
Dim a as Single
9
Dim b as String= "123.5"
10
a = CSng(b)
11
if a <> 123.5
12
Throw new System.Exception("Conversion of String to Single not working. Expected 123.5 but got " &a)
13
End if
14
End Sub
15
End Module