Python 3.7: Round() Built-In Function

preview_player
Показать описание
In this Python 3.7 tutorial, we will show you how to use the round built-in function to improve the accuracy of floating-point numbers in Python.

Рекомендации по теме
Комментарии
Автор

You should have so much more views and subscribers

decorusshows
Автор

why round(6.5) == 6
but round(7.5) == 8

incomingtide
Автор

I don't know if round(6.5) is really an issue, or it has something to do with round half to even.

FarhanAli-mmrx
Автор

Hello sir I like your tutorial please upload the video as fast as possible.it is request thanks

muzmmilpathan
Автор

Plz make video on scipy, numpy, matplotlib, gui library, networking, and interfacing MATLAB.

sksahadatali
Автор

If you try in Python
>>> a = .2 + .1
>>> round(a, 1)
0.3
I get 0.3 when you round to

milestailsprower
Автор

are u sure this is Python 3.7?






i have it and it looks different on my PC

MohammedAhmed-suqk
Автор

someone please help, i amreally struggling to find an answer to this one which to me should be so simple!
i need a round down function 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