expconversiondoubletosinglec.vb
来自「大名鼎鼎的mono是.NET平台的跨平台(支持linux」· VB 代码 · 共 16 行
VB
16 行
'Author:' V. Sudharsan (vsudharsan@novell.com)'' (C) 2005 Novell, Inc.Module ExpConversionDoubletoSingleC Function Main() As Integer Dim a As Single Dim b As Double = -4.94065645841247E+300 a = CSng(b) If a <> Single.NegativeInfinity Then System.Console.WriteLine("Double to Single Conversion is not working properly. Expected -Infinity but got " & a) : Return 1 End If End FunctionEnd Module
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?