POV-Ray : Newsgroups : povray.general : 2^3*4^4: quick what is it? : Re: 2^3*4^4: quick what is it? Server Time
21 Dec 2025 01:24:11 EST (-0500)
  Re: 2^3*4^4: quick what is it?  
From: Alex Vandiver
Date: 29 Nov 2000 21:17:23
Message: <3A25B889.52E0F95F@tiac.net>
Steve wrote:
> In perl I get:
> 
> my $Calculator = 2^3*4^4;
> print "$Calculator\n\n";
> 
>   This prints 10
> [snip] 
Looks like you need to reread perlop.  The caret (^) in Perl is the
bitwise exclusive or.  Using ** will give you the expected answers.
HTH,
-Alex V.


Post a reply to this message

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