Gunslinger08 Lifer Nov 18, 2001 13,234 2 81 Dec 3, 2003 #1 I can't seem to figure out how to make it not show a decimal point in c++. Can anyone help me out?
S singh Golden Member Jul 5, 2001 1,449 0 0 Dec 3, 2003 #2 You could do an int cast: float realNum = 1.222; cout << (int)realNum;
G Glitchny Diamond Member Sep 4, 2002 5,679 1 0 Dec 3, 2003 #3 yeah if u type cast it as an int the number will be truncated (not rounded)