Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why is this happening?
#4
try to work out what that number is in base two.  the trouble is that 3.2 takes an infinite number of bits to do it.  but computers limit the number of bits per number.  the bits get set to a number that needs no more bits than the maximum.  it gets set to the number closest to what was wanted.  when that number gets printed, it is printing that very close number the best it can (most numbers can't even be printed in base ten, such as 1/3).
taner7 likes this post
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
Why is this happening? - by taner7 - Oct-14-2020, 08:51 PM
RE: Why is this happening? - by bowlofred - Oct-14-2020, 08:54 PM
RE: Why is this happening? - by sblancov - Oct-14-2020, 09:17 PM
RE: Why is this happening? - by Skaperen - Oct-14-2020, 10:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Lightbulb What's happening here? jesse68 3 979 Feb-27-2023, 04:53 PM
Last Post: Gribouillis
  2 if statements happening at the same time M0TH 3 963 Nov-19-2022, 11:37 PM
Last Post: M0TH
  Binding not explicitly declared happening karkas 4 2,906 Aug-05-2019, 05:09 PM
Last Post: karkas
  Why this python ValueError is not happening aurquiel 2 3,072 Aug-20-2018, 07:17 PM
Last Post: aurquiel
  Something strange happening here !? TerryRitchie 4 3,935 Apr-20-2017, 07:14 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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