Please explain round function in details with example how it works | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Please explain round function in details with example how it works

26th Feb 2017, 8:38 PM
Rupam Das
Rupam Das - avatar
1 Respuesta
0
If the decimal or floating part is .5 or higher the number is rounded up. Otherwise it is rounded down 1.5 rounds up and becomes 2 1.49 rounds down and becomes 1
26th Feb 2017, 9:08 PM
ChaoticDawg
ChaoticDawg - avatar