POV-Ray : Newsgroups : povray.general : 2^3*4^4: quick what is it? : Re: 2^3*4^4: quick what is it? Server Time
8 Aug 2024 14:20:22 EDT (-0400)
  Re: 2^3*4^4: quick what is it?  
From: Matt Giwer
Date: 29 Nov 2000 19:16:42
Message: <3A259C6B.BC967271@ij.net>
"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

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