I am getting a float input from the user with this code.
1. float change = Getfloat();
2. change *= 100;
3. int remainder = change;
However, when the user inputs 4.2 line 2 turns change variable to 419.999969 and line ends up with 419. How do I change the program so it effectively change the float to int.