Converting a float to an int without truncation
Hello, I am in my first two weeks of a C++ class and I am having a problem with my program.
my program is supposed to accept five decimal numbers from the keyboard. Once these five decimal numbers are entered I must convert them into the "nearest integer" .
I have played around with several "casting" procedures but all of them simply truncate (drop) the number after the decimal.
I have grown frustrated and I need help.
To whoever reads this, thanks for your time, it is greatly appreciated!! ;)