Sep-28-2020, 04:55 PM
Hi all. I am new to python and was hoping to get some help. I understand that // is used to do integer division but I'm confused about certain outcomes. Eg: 10//2.5 results in 4.0, 9//1.6 results 5.0 (rounded down), 9//1.8 results in 4.0 !! I don't understand why the last two have different results. Can someone please explain (remembering that I am new to this lol)?
Thanks,
plozaq
Thanks,
plozaq