Python Tutorial: Division in Python - Python Numbers #31

Publicado el: 18 marzo 2015
en el canal de: Code master
18,067
87

For more information about Division in Python visit our website at http://learnpythontutorial.com/divisi...

In this Python Tutorial we discuss Division in Python 3. We cover the difference in two different division types in Python 3. First one is true division and the second is floor division in Python 3.

True division returns a remainder in a floating type number format. True division is a more accurate number but the floating point number may need to be adjusted using round built-in function or the decimal module.

Floor division is less accurate and the number is rounded down the the next whole number. Floor division will return a integer if only integers are used in the equation. If you use at least one floating point number we will get a float returned.


En esta página del sitio puede ver el video en línea Python Tutorial: Division in Python - Python Numbers #31 de Duración hora minuto segunda en buena calidad , que subió el usuario Code master 18 marzo 2015, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 18,067 veces y le gustó 87 a los espectadores. Disfruta viendo!