POV-Ray : Newsgroups : povray.general : float/double precision Server Time
27 Dec 2024 05:37:14 EST (-0500)
  float/double precision (Message 1 to 5 of 5)  
From: dragonmage
Subject: float/double precision
Date: 25 Jan 2006 00:35:01
Message: <web.43d70dd51ae590815820684d0@news.povray.org>
Does POVRay use double precision numbers anywhere in its fields or calcs?


Post a reply to this message

From: Warp
Subject: Re: float/double precision
Date: 25 Jan 2006 06:26:29
Message: <43d76065@news.povray.org>
dragonmage <dra### [at] gmailcom> wrote:
> Does POVRay use double precision numbers anywhere in its fields or calcs?

  I wonder why you think that 'double' wouldn't be the default type used
by POV-Ray for its calculations.

  AFAIK the only places POV-Ray uses 'float' is in color handling (ie.
the colors of the final image, which end up as pixels in the final image
file) and mesh coordinates.

-- 
                                                          - Warp


Post a reply to this message

From: dragonmage
Subject: Re: float/double precision
Date: 26 Jan 2006 20:35:00
Message: <web.43d977bbbbb99ad95820684d0@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> dragonmage <dra### [at] gmailcom> wrote:
> > Does POVRay use double precision numbers anywhere in its fields or calcs?
>
>   I wonder why you think that 'double' wouldn't be the default type used
> by POV-Ray for its calculations.
In the help provided with the program:
a search on "float" reveals endless references to float,
such as: all floating point functions, vector litterals, user defined
functions,
teh machine epsilon documented is rather large, pretty muich all parameters,
such as global settings, the transformation matrix is 12 float vectors, ...
and so on.

searching on double finds much less.  though there is a para. on 3DNow which
states that POVRay needs double precision.

cheers,

chris
>
>   AFAIK the only places POV-Ray uses 'float' is in color handling (ie.
> the colors of the final image, which end up as pixels in the final image
> file) and mesh coordinates.
>
> --
>


Post a reply to this message

From: Daniel Hulme
Subject: Re: float/double precision
Date: 27 Jan 2006 04:15:46
Message: <20060127091609.42eafdc6@mekanori.mon.istic.org>
> In the help provided with the program:
> a search on "float" reveals endless references to float,
The user documentation doesn't trouble itself to distinguish between
single and double precision, subsuming them all as floating-point
numbers. If you search the source for references to SNGL and DBL (which
are typedef'd appropriately), you will find fewer areas where SNGL is
mentioned.

-- 
"Of all  things,  good sense is  the most fairly  distributed:  everyone
thinks  he is  so well  supplied  with it  that even  those who  are the
hardest to satisfy in  every other respect never  desire more of it than
they already have."   --  Descartes, 1637      http://surreal.istic.org/


Post a reply to this message

From: Warp
Subject: Re: float/double precision
Date: 27 Jan 2006 06:01:03
Message: <43d9fd6f@news.povray.org>
dragonmage <dra### [at] gmailcom> wrote:
> In the help provided with the program:
> a search on "float" reveals endless references to float,

  In the documentation "float" is just short for "floating point number".
It doesn't refer to its size.

-- 
                                                          - Warp


Post a reply to this message

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