Converting | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuesta
+ 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