POV-Ray : Newsgroups : povray.general : Re: (X <= D) is not equal ((X<D) | (X=D)) : Re: (X <= D) is not equal ((X<D) | (X=D)) Server Time
9 Aug 2024 23:29:43 EDT (-0400)
  Re: (X <= D) is not equal ((X<D) | (X=D))  
From: David Fontaine
Date: 24 Apr 2000 17:32:24
Message: <3904BCD8.87C179BA@faricy.net>
"Peter J. Holzer" wrote:

> Right. Especially make it clear that floating point numbers are binary
> and cannot exactly represent fractions which are not a multiple of some
> power of two. 1/2, 3/4, 356/1024 can be exactly represented, but 1/10
> cannot (just like 1/3 cannot be exactly represented in decimal).
> Therefore 10 * 0.1 is not equal to 1.

Except on TI's where they're in BCD ;)

--
___     _______________________________________________
 | \     |_          <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine        http://www.faricy.net/~davidf/

"The only difference between me and a madman is that I'm not mad." -Dali


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.