POV-Ray : Newsgroups : povray.general : POV Parsing : Re: POV Parsing Server Time
9 Aug 2024 03:24:57 EDT (-0400)
  Re: POV Parsing  
From: Peter J  Holzer
Date: 29 Aug 2000 20:01:40
Message: <slrn8qoe0t.8o6.hjp-usenet@teal.h.hjp.at>
On 29 Aug 2000 11:56:31 -0400, Warp wrote:
>Chris Huff <chr### [at] maccom> wrote:
>: And the only benefit would be lower memory usage, which is 
>: really only relevant if you are storing huge arrays.
>
>  It's not the only benefit. The other benefit would be precision. If you
>use very large integers, floats may lose information.
>  This may be important when making mathematical operations. For example:
>
>25^7/1953125  ( = 3125 )
>
>may give a different result if we use integers or if we use floats.

Indeed. If you compute this with standard 32 bit integer arithmetic, the
result is 925. Probably not what you had in mind. 

        hp

-- 
   _  | Peter J. Holzer    | Nicht an Tueren mangelt es,
|_|_) | Sysadmin WSR       | sondern an der Einrichtung (aka Content).
| |   | hjp### [at] wsracat      |    -- Ale### [at] univieacat
__/   | http://www.hjp.at/ |       zum Thema Portale in at.linux


Post a reply to this message

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