Round integer to integer

Hi. I need to round any integer value like this-

15 = 20
14 = 10
4 = 4
5 = 5
99 = 100
12345678 = 10000000
44444445 = 50000000
1445 = 2000
446 = 500

Anyone can help me?
That is an inconsistent example.

14 => 10, but 1445 => 2000


[EDIT] Duplicate thread: http://www.cplusplus.com/forum/beginner/115365/
Last edited on
Topic archived. No new replies allowed.