Limit the number of digits in an output

... 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
cout << 1234567/100;
Topic archived. No new replies allowed.