Python 14: Round a number to 0, 1 or 2 decimal places using the round() function.

preview_player
Показать описание
The round function returns a floating number rounded to a number of decimal places if indicated, otherwise, 0.
Рекомендации по теме
Комментарии
Автор

This helped me so much. I was struggling to get my decimals properly and you made it so EASY

TeresaCassidy
Автор

Thank you so much!!!
Literally took forever to try to find out

sams
Автор

this can help a lot of people here aswell print(f"5 x 5 equals {5*5}") am refuring to the function of f""

voidandBright
Автор

Thankyou it's a great help since i have this for interview today

jagafaster
Автор

Wow this really helped with my homework

tinongnjong
Автор

Great, easy to learn with you. Thank you

lalagul
Автор

Helped me and video is to the point which is good

qasimjaved
Автор

do you know how to round in an app call replit, because I don't think the command round is a thing

thekool-aidman
Автор

it worked but how do i display the number without nearest decimal
*for example : i want to display 99.9956 not 100 *.
coz when i use round(value, 2) it shows me 100 instead of 99.9956

maxjak
Автор

If i dont want to round off numbers and get it as it is.. What to do... Long numbers like 0205001616171717 gets rounded off to 0205002 in python. But we dont want like that. We want full number. How to do in python coding

caankitrmehta
Автор

can u explain me what if i type round(123.1223, -1)

Mr_undefined_