POV-Ray : Newsgroups : povray.beta-test : Buggy power operator in functions Server Time
1 Nov 2024 21:21:33 EDT (-0400)
  Buggy power operator in functions (Message 1 to 1 of 1)  
From: Tor Olav Kristensen
Subject: Buggy power operator in functions
Date: 5 Mar 2002 02:49:21
Message: <3C847750.BE9AD3A5@hotmail.com>
POV-Ray Version 3.5.Beta.12.icl.win32:


#declare Fn = function(A) { A^0 }

#debug str(Fn(0), 0, -1)
// Should return error message, but returns 0

#debug str(Fn(3), 0, -1)
// Should return 1, but returns 0


The pow() operator seems to behave correctly.


Tor Olav


Post a reply to this message

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