0
Iteration through the decimal part of a double?
I have a double a = 123.123456 I need a program that outputs 123456. Edit: Not output, but to store the digits in a char array.
4 ответов
0
I've written this program but the output is far from being the needed one.
http://www.sololearn.com/app/cplusplus/playground/cVdfGaY4IEXh/
0
http://www.sololearn.com/app/cplusplus/playground/c83sz3Wbx4Kx/
0
The goal here is to be able to convert it into char array.
- 1
Float f = 123.123456;
Int I = f;
Cout << f - I;