Decimal decTest = 2.269;
decTest.ToString("0") //2
decTest.ToString("0.0") //2.4
decTest.ToString("0.00") //2.27
張貼者:
Sam_Yu
意見 (0)
Decimal decTest = 2.269;
decTest.ToString("0") //2
decTest.ToString("0.0") //2.4
decTest.ToString("0.00") //2.27
Copyright 2009 - Sam 的天馬行空不務正業亂想誌
Blogspot Theme designed by: Ray Creations, Ray Hosting | Tested by Blogger Templates.