|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |