Beginner Python Tutorial 5 - round Function

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

"This isn't no college where you go to sleep"


- Caleb Curry 2020

janonimous
Автор

Thank you so much for taking the time to define terms like 'argument' and 'passing data'. You do it in a way that's not condescending, and your tuts make coding fun!

Also, why is it necessary to import a module to round numbers.... like what exactly is happening when we do this? Thanks from Pennsylvania. :)

jillieduke
Автор

Round? More like "Thanks for being around!" But seriously, your videos are amazing, and keep up the great work.

PunmasterSTP
Автор

Thank you for the emphasis on the vocabulary. It helps out a lot!🙏🏿

nickersonlauriston
Автор

I dont understand why 2.5 got rounded to 2 and why 2.5555 was 2.6?

carlitodidthat
Автор

thanks Caleb I'm trying to learn python so I can make a simple game

tictactimes
Автор

hey caleb, why is it rounding 2.5 to 2 and (2.5555, 1) to 2.6 ( isnt it supposed to round off to 2.5)??

labeeb_basil
Автор

Can you round a variable
Say you define a variable
num = 3.444
Can you round it by using round(num, 2)?

samjonas
Автор

Caleb: this isn't no college where u can go to sleep
Me:* gets scared and throws away pillow*

durvaurankar
Автор

bro what is the function to round off in pseudocode pls my exam is tmo help mee

bestalpha
Автор

Thanks so much for your help, it was very much appreciated.

kavonbaugh
Автор

Is anyone else struggling to get the function to display how it works when the parenthesis’s are open?

brendankerr
Автор

I named an integer and it doesnt wanna round it up
I mean:

number = 3.5
number2 = round(number)
print(number2)

some help?

mrbrownie
Автор

why in a round function it is rounding up and for some it's rounding down? Like round(2.5) is 2(why not 3?) but round(1.5) is 2.

FarhanAli-mmrx
Автор

Hi there, I have a question~

I wanted to convert Fahrenheit to Celsius degrees, and I used "celsius = (int(input(181)) - 32)/1.8000" to get the value of Celsius degrees. And I wanted to round up to 83 and tried
"round_celsius = math.ceil(int(celsius))" but still got 82... and I finally got the return of 83 as I got rid of int() with "round_celsius = math.ceil(celsius)". is it because that int() would automatically round down the number? Why is it?

rosesofficialhusband
Автор

I wonder if it happens for everyone but why when I round 2.5 I get 2 but when I round 3.5 I get 4 ?

leaaba
Автор

someone please help! i am really struggling to find an answer to this one which should be so simple!
i need a round down function exactly like the ROUNDDOWN function in excel where you can round down numbers to any amount of decimal places

for example:
(1dp) - 7.78882 rounds down to 7.7
(1dp) - 6.24343 rounds down to 6.2

(2dp) - 7.78882 rounds down to 7.78
(2dp) - 6.24343 rounds down to 6.24

(3dp) - 7.78882 rounds down to 7.788
(3dp) - 6.24343 rounds down to 6.243

etc

thank you

JagoBridgland
Автор

Haha am Keeping up with this, caleb thinks hes too fast.

ratnight
Автор

to be frank it is not good explanation, when do round u have to how it is getting nearest smallest and largest integer

krishnavelama