POV-Ray : Newsgroups : povray.general : Error with pow() : Re: Error with pow() Server Time
5 Nov 2024 05:21:37 EST (-0500)
  Re: Error with pow()  
From: Tim Nikias v2 0
Date: 14 Jun 2003 11:03:15
Message: <3eeb3933$1@news.povray.org>
>   Non-integer results may differ even if the exponent is rounded to
integer.
> Rounding it doesn't really "fix" anything.
>   We are talking about differences in the 15th most significant digit or
> whatever. Nothing really important.

Hm. So I should better use floor() or ceil()? These should
clip to the same values for different platforms, right? And
why doesn't int() do that?

-- 
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde

> > Docs say: non-integer results might differ
> > for platforms. So this just makes sure that doesn't
> > happen.
>
>   Non-integer results may differ even if the exponent is rounded to
integer.
> Rounding it doesn't really "fix" anything.
>   We are talking about differences in the 15th most significant digit or
> whatever. Nothing really important.
>
> -- 
> #macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb
M()}}
> N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
> N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  -
Warp -


Post a reply to this message

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