Files
libreoffice/basic/qa/basic_coverage/da-DK/cdbl-2.vb
Noel Power f69acf929b another variation of the localised Cdbl test
Change-Id: Icf6dd7428cb88f1891c6d816a24a4126ea2cc135
2013-03-21 11:33:53 +00:00

15 lines
313 B
VB.net

Function doUnitTest() as Integer
Dim A As String
Dim B As Double
Dim Expected As Double
A = "222,222"
' in da-DK locale ',' is the decimal separator
Expected = 222.222
B = Cdbl(A)
If B <> Expected Then
doUnitTest = 0
Else
doUnitTest = 1
End If
End Function