cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Round integer to integer
Round integer to integer
Nov 1, 2013 at 8:09am UTC
Ltp
(78)
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?
Nov 1, 2013 at 8:28am UTC
keskiverto
(10402)
That is an inconsistent example.
14 => 10, but
14
45 =>
20
00
[EDIT] Duplicate thread:
http://www.cplusplus.com/forum/beginner/115365/
Last edited on
Nov 1, 2013 at 8:30am UTC
Topic archived. No new replies allowed.