 PRO

# Floats

Question in regards of your video - how come when you do 16/4 the Workspace output is 4.0 - you dividing integers so output should be an integer. I have tried it in the terminal of my mac and output is integer 4 - even is you do previous 4+1.5 = 5.5 is float and then 16/4 = 4 integer - probably you have a bug in the workspace.

## 8 Answers Noticed on my mac when running "python" (2.7.10) 16/4 returns 4, however, if I run "python3" (3.6.4) it returns 4.0. The workspace is running 3.6.4 as well, so it returning a float is correct.

However in Python3, if you do 16//4 it will return an integer.

Note: even with // if either of the numbers is a float, it will return the float.

It also discussed in the video itself, the operation returns a float. If you wish to have integer division. You can do the following operations

```23 // 3
23 % 4 #this will give you the remainder
``` I think you have it backwards. In Python 2.7, the `/` is an integer division symbol and will return and integer. In Python 3, the `/` is the floating point division symbol and the `//` is the integer division symbol.

This can be found in the Development notes for Python, or a more clear explanation in this Stack Overflow thread

Keep Coding! :) now this session start very complicated. hard to understand.

plz make an simple video its hard to understand This is because there are different Python version used. Python updates from time to time, currently the community is separated in the "old" Python version 2.7 and the newer version Python 3.7. The Workspace uses this newer version which comes with new functionalities. The division operator (/) now always returns answers as floating point number. If you wish to use the old functionality you have to use a double forward slash (//) for integer division. You could of course also download the newer version of python at python.org!