RSS Forums RSS
Please support our VB.NET advertiser: Programming Forums

Two Decimal Places

Join Date: Oct 2006
Location: England
Posts: 157
Reputation: ptaylor965 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 19
Sponsor
ptaylor965's Avatar
ptaylor965 ptaylor965 is offline Offline
Junior Poster

Two Decimal Places

  #1  
Jul 28th, 2007
Hi,
Could you please show me how to get
1.9
to show with two decimal places (1.90)


you can use
Math.Round(1.99999999, 2)
if you want to bring the decimal places down to two
but how do you increase from zero or one decimal place up to two?


Thanks
Peter
AddThis Social Bookmark Button
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:18 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC