impconversionstringtodoublec.vb
来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 22 行
VB
22 行
'Author:' V. Sudharsan (vsudharsan@novell.com)'' (C) 2005 Novell, Inc.Option Strict OffImports System.ThreadingImports System.GlobalizationModule ImpConversionStringtoDoubleD Function Main() As Integer Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US") Dim a As String = "12.9" Dim b As Double = a + 123 If b <> 135.9 Then System.Console.WriteLine("Concat of String & Double not working. Expected 135.9 but got " & b) : Return 1 End If End FunctionEnd Module
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?