POV-Ray : Newsgroups : povray.general : Help creating a sgn() function : Re: Help creating a sgn() function Server Time
2 Aug 2024 00:17:52 EDT (-0400)
  Re: Help creating a sgn() function  
From: Christopher James Huff
Date: 3 Mar 2005 16:27:41
Message: <cjameshuff-5C7609.16274103032005@news.povray.org>
In article <42274012$1@news.povray.org>, Jo Jaquinta <jo### [at] 111georgecom> 
wrote:

>    I'm trying to create a sgn() function, like in BASIC. Where sgn(x) = 
> -1 if x < 0, +1 if x > 0 and 0 if x = 0.

One already exists in math.inc.

-- 
Christopher James Huff <cja### [at] gmailcom>
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

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