How to multiply two numbers without rounding? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

How to multiply two numbers without rounding?

input: a=68.33, b=4.5, output: c= 307,49, but C must be equal to 307.485. How can I do this?

19th Mar 2020, 8:44 AM
PUFFIN Channel
PUFFIN Channel - avatar
1 Respuesta
+ 2
Just type cast them to float. 👇 https://code.sololearn.com/cRXPlJsFy8NW/?ref=app
19th Mar 2020, 9:14 AM
Arsenic
Arsenic - avatar