RSS Forums RSS
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums

problem with decimal places

Join Date: Aug 2006
Posts: 29
Reputation: stan yost is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
stan yost stan yost is offline Offline
Light Poster

Help problem with decimal places

  #1  
Jan 3rd, 2007
The following code comes up with a number that has 13 digits past the decimal point. How can I cut this down to 2 decimal places?

[Let drivetimeexpense = (rstdrivinginfo.timefromhome * rstdrivinginfo.numberoftrips * 2 / 60) * 20]
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 5:36 pm.
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