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
Limit the number of digits in an output
Limit the number of digits in an output
Sep 25, 2009 at 2:10pm UTC
knh8
(1)
... because I don't know the search query for it. D:
So let's say I have a number 1234567 but I want the output to only show 5 digits. So the result must be 12345.
Help? Even if it's just a pseudo-code? x_x
Sep 25, 2009 at 4:41pm UTC
Bazzy
(6281)
cout << 1234567/100;
Topic archived. No new replies allowed.