 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
It is interesting that when I do a #debug for a variable which I have
declared as [ #declare angie=2^3*4^4;]
povray tells me it is 1084576, when I paste this text (2^3*4^4) into
Lotus1-2-3, the result is 2048.
The Lotus 1-2-3 answer is based on the hierarchy of operators I remember
from grade school. Is povray's hierarchy of operators like that of C or
is it "new"?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Wed, 29 Nov 2000 16:05:50 -0500, Greg M. Johnson wrote:
>It is interesting that when I do a #debug for a variable which I have
>declared as [ #declare angie=2^3*4^4;]
>povray tells me it is 1084576, when I paste this text (2^3*4^4) into
>Lotus1-2-3, the result is 2048.
>
>The Lotus 1-2-3 answer is based on the hierarchy of operators I remember
>from grade school. Is povray's hierarchy of operators like that of C or
>is it "new"?
How did you do that? POV doesn't have a ^ operator.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ron Parker wrote:
> How did you do that? POV doesn't have a ^ operator.
MegaPov does in the isosurface feature.
--
Ken Tyler
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Wed, 29 Nov 2000 13:32:20 -0800, Ken wrote:
>
>
>Ron Parker wrote:
>
>> How did you do that? POV doesn't have a ^ operator.
>
>MegaPov does in the isosurface feature.
Yes, but he said he used #declare.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
In article <slr### [at] fwi com>, ron### [at] povray org
wrote:
> Yes, but he said he used #declare.
I wrote a patch which allows it to be used outside isosurface functions
as well. However, it doesn't do the precedence right, and I am not
certain how to fix it.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 29 Nov 2000 16:45:34 -0500, Ron Parker wrote:
>On Wed, 29 Nov 2000 13:32:20 -0800, Ken wrote:
>>
>>
>>Ron Parker wrote:
>>
>>> How did you do that? POV doesn't have a ^ operator.
>>
>>MegaPov does in the isosurface feature.
>
>Yes, but he said he used #declare.
Ah, I see. It's been added to express.c in MegaPOV as well as to the isosurf
stuff. It wasn't added correctly, though; it has the same precedence as
multiply and divide. We'll need to make sure that gets fixed in 3.5.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 29 Nov 2000 16:53:30 -0500, Ron Parker wrote:
>Ah, I see. It's been added to express.c in MegaPOV as well as to the isosurf
It's worth noting that this is not a question for .general. If you're
using MegaPOV, and you're using a feature that isn't in the current official
version of POV-Ray or that works differently in the current official version
of POV-Ray, you should at least say so, and you should seriously consider
asking in the unofficial.patches newsgroup instead.
Is this in the "Welcome to the POV-Ray newsgroups" thingie in p.a.f-a-q?
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ron Parker wrote:
> Is this in the "Welcome to the POV-Ray newsgroups" thingie in p.a.f-a-q?
Generally but not specifically.
--
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ken wrote:
>
> Ron Parker wrote:
>
> > Is this in the "Welcome to the POV-Ray newsgroups" thingie in p.a.f-a-q?
>
> Generally but not specifically.
Actually it is specific -
"*Unofficial Patches Group
There is an unofficial patches group where discussions on using other
peoples modified versions of POV-Ray are held."
--
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Greg M. Johnson" wrote:
>
> It is interesting that when I do a #debug for a variable which I have
> declared as [ #declare angie=2^3*4^4;]
> povray tells me it is 1084576, when I paste this text (2^3*4^4) into
> Lotus1-2-3, the result is 2048.
>
> The Lotus 1-2-3 answer is based on the hierarchy of operators I remember
> from grade school. Is povray's hierarchy of operators like that of C or
> is it "new"?
When in doubt use parenthesis. They rule.
--
Brought to you by Weyland-Yutani
Making Space a better Place to Scream.
-- The Iron Webmaster, 255
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |