Philip Newton (pne) wrote,
Philip Newton
pne

  • Mood:

Floating point is HARD!

Co-worker trying to convince me that "0.5 is not exactly representable in [binary] floating-point".

Hello? It's exactly 2-1. Of course it's exactly representable!

Maybe you were thinking of 0.1 or something, which isn't representable exactly in binary. But not 0.5.

A little knowledge is a dangerous thing.

Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 7 comments