Is there a in-built method to find nearest whole number for floating point numbers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is there a in-built method to find nearest whole number for floating point numbers

Can anyone mention

21st Oct 2020, 1:46 PM
shahul hameed
shahul hameed - avatar
2 Answers
21st Oct 2020, 2:01 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 1
Yes, round() can help.
22nd Oct 2020, 8:05 PM
Dino Wun (Use the search bar plz!)
Dino Wun (Use the search bar plz!) - avatar