Opposite of showpoint in c++?

Gunslinger08

Lifer
Nov 18, 2001
13,234
2
81
I can't seem to figure out how to make it not show a decimal point in c++. Can anyone help me out?
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
You could do an int cast:

float realNum = 1.222;

cout << (int)realNum;