POV-Ray : Newsgroups : povray.advanced-users : Numerical Precision : Re: Numerical Precision Server Time
4 Oct 2024 23:17:23 EDT (-0400)
  Re: Numerical Precision  
From: Alain
Date: 10 Sep 2007 09:50:13
Message: <46e54b95@news.povray.org>
Woody nous apporta ses lumieres en ce 2007/09/09 11:55:
> Does anybody know of a way, short of modifying the sourcecode, to increase
> the numerical precision that pov ray uses.
> 
> For example say I need to calculate 1/3 to the 100th decimal place. I
> believe it goes upto maybe the 8th or sixteenth place?
> 
> Is there some ini option that can do this?
> 
> What about declaring the value as you want it.
> i.e. instead of writing
> #declcare my_var = 1/3;
> 
> declare it as
> #declare my_var = 0.333333333333333333333333333333333333333333333333333;
> 
> Would this do anything or would it truncate after a certain decimal spot?
It would only take more place in the source file and take longer to parse.
> 
> 
If you recompile POV-Ray with a smaller epsilon value, you may, just may, gain 1 
decimal place, then, only in some cases.
To realy be able to use more presision in your floating point operations, you 
need a different HARDWARE: an FPU with more bits than the current implementation.
Currently, ALL CPUs have 64 bits FPU with an internal extention to 80.
You need an FPU with 96 or 128 bit to get the kind of precision that you want.
Then, you'd need to recompile POV-Ray to take advantage of the new architecture.
Any way, 1/3 will always be shorter and faster to parse than 
0.333333333333333333333333333333333333333333333333333 for the same effective 
precision.

-- 
Alain
-------------------------------------------------
   My wife is such a bad cook, in my house we pray after the meal.
   	Rodney Dangerfield


Post a reply to this message

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