-
Python (
http://www.daniweb.com/forums/forum114.html)
| tomtetlaw | Jun 28th, 2009 5:57 am | |
| Rounding numbers How would I round a number to the nearest multiple of 10? |
| BigTurtle | Jun 28th, 2009 6:33 am | |
| Re: Rounding numbers How about this: RoundedN = 10*int(round(N/10.0)) , where N can be integer or floating |
| tomtetlaw | Jun 28th, 2009 9:25 am | |
| Re: Rounding numbers Thanks! :) |
| All times are GMT -4. The time now is 9:03 am. | |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC