Converting | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Converting

Do you think it is possible to convert a real number into an integer with almost complete preservation of decimal places?

16th Nov 2018, 4:50 PM
Crinax
Crinax - avatar
1 Answer
+ 1
If you calculate the number (integer) digit by digit and just print out all of them one after another, you can do it. Examples: https://code.sololearn.com/c70NlpQokwmr/?ref=app https://code.sololearn.com/cnCk4wRLTkS6/?ref=app
16th Nov 2018, 5:09 PM
HonFu
HonFu - avatar