Discussion:
如何取數值到小數點二位
(时间太久无法回复)
unknown
2006-06-06 04:06:02 UTC
Permalink
請教一下

若有一數值為 12.234543....
在ASP.NET中我要使用那個函數才能取出12.23呢?

謝謝!
璉璉
2006-06-06 05:55:00 UTC
Permalink
°²©w§Aªºžê®Æ«¬§O¬° Double ©Î single

Dim a As Double = 12.234543
a.ToString("0.00")

§A€]¥i¥H¥Î Format šçŒÆÂàŽ«¡C
©ó news:3610A0F6-8B72-4DEA-A37F-A14BEE81E896%40microsoft.com µoªí
ŠbASP.NET€€§Ú­nšÏ¥Îšº­ÓšçŒÆ€~¯àšú¥X12.23©O¡H
ÁÂÁ¡I
--
­·¬ê¬ì§ÞÅçÃÒŠ³­­€œ¥q ASP.NET Web News Reader 0.2.2 UTF-8 Beta
ºô¯žŠa¹Ï http://tlcheng.no-ip.com/wwwmap.htm
¬y°ìšŸ¬x/°Ï°ì€ôžê·œ/®}ª@ºô/ªŽºÀ¹Ï/»y­µ³q°T €å³¹»Pµ{Š¡
Basic/Fortran/Windows API/.Net/»²§U»¡©úÀÉ ­ì©lœX¡B€å³¹»P°Qœ×
--
ASPNET News http://tlcheng.no-ip.com/News/ | http://tlcheng.twbbs.org/News/
RSS 2.0 http://tlcheng.no-ip.com/News/rss2.aspx?Action=List&Newsgroup=microsoft.public.tw.dotnet.framework.aspnet
继续阅读narkive:
Loading...