Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
why it's not printing?
#4
Floor division (//) in Python is almost the same as divmod builtin-function.
You can see its implementation from here.
Since divmod(10, 0.1) = (99.0, 0.0999999....etc) due to precision loss (as @ichabod801 mentioned above), you get 10//0.1=99.0 .
Reply


Messages In This Thread
why it's not printing? - by nickto21 - Aug-15-2019, 10:59 PM
RE: why it's not printing? - by ichabod801 - Aug-15-2019, 11:11 PM
RE: why it's not printing? - by nickto21 - Aug-15-2019, 11:26 PM
RE: why it's not printing? - by scidam - Aug-16-2019, 12:41 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020