如何 将 123.5678 转换成 1.24E002 如何 将 123.5678 转换成 1.24E002 __________________________________________________________________________ 123.5678.ToString( "E ")) __________________________________________________________________________ 123.5678.ToString( "E ") __________________________________________________________________________ 你应当看 http://msdn2.microsoft.com/zh-cn/library/dwhawy9k(VS.80).aspx __________________________________________________________________________ Single.Parse( "123.5678 ").ToString( "E2 ").Replace( "+ "," ") __________________________________________________________________________ E2表示科学计数法,保留两位小数 但结果是1.24E+002,指数有符号, 如果要1.24E002,只能再把+过滤掉 __________________________________________________________________________ 有的牛人有两个钻石了。 __________________________________________________________________________
原文链接:https://www.f2er.com/vb/263903.html