POV-Ray : Newsgroups : povray.general : POV Parsing : Re: POV Parsing Server Time
9 Aug 2024 13:22:55 EDT (-0400)
  Re: POV Parsing  
From: Thorsten Froehlich
Date: 29 Aug 2000 22:14:00
Message: <39ac6de8@news.povray.org>
In article <39abdd2e@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:

>   It's not the only benefit. The other benefit would be precision. If you
> use very large integers, floats may lose information.

Just like integer precision decreases the smaller the numbers get.  Try 3/2
for example ;-)

You should also consider that POV-Ray uses floats/doubles for nearly every
internal calculation, so the use of integers does not make sense for a lot
of things.  Only as counters and array indices they would be really useful,
but within the common ranges (those that don't blow the memory limits) of
for example +-1000000 the precision limit of doubles should be far (enough)
behind the comma even after several calculations with it.


     Thorsten


Post a reply to this message

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