POV-Ray : Newsgroups : povray.beta-test : Small bug, asking for someone to check on latest RC : Re: Small bug, asking for someone to check on latest RC Server Time
29 Jul 2024 10:27:58 EDT (-0400)
  Re: Small bug, asking for someone to check on latest RC  
From: Christoph Hormann
Date: 26 May 2002 12:58:21
Message: <3CF1142D.E3470A0A@gmx.de>
Slime wrote:
> 
> [...]
> 
> The following code:
> #debug str(-1^2,5,5)
> 
> outputs "1.00000". No negative sign. The negation operator is taking
> precedence over the exponent operator. This shouldn't be the case. Note that
> the same problem happens with -(1)^2, but not with -(1^2).
> 

It still writes '1.0', but this is intended behavior IIRC, the unary '-'
has a higher precedence than the '^'. 

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 05 May. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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