| Author: Mohan 06 Sep 2009 | Member Level: Diamond Points : 1 |
Hi ABit,
Your Code is working for 9,99,999 perfectly.
But if i am giving 149,199,949 that time also it is return 1000.
Actually it should return like 150,200,950
|
| Author: ABitSmart 07 Sep 2009 | Member Level: Diamond Points : 1 |
Thank you very much for referring my post, appreciate your comments.
I did the test with your number and got 1000000000 as an answer. Which is correct. My code does rounding to the nearest 10,100,1000,10000 etc
|
| Author: Mohan 07 Sep 2009 | Member Level: Diamond Points : 0 |
Thanks for reply.
But you explain the code rounds near the 10's
|