|
|
"Bald Eagle" <cre### [at] netscapenet> wrote:
> "Fractracer" <lg.### [at] gmailcom> wrote:
>
> > Maybe one #if statement can make the job, with #if (abs(_X) <= 1)
>
> yes, excellent.
> I'll replace my kludge tonight with:
>
> #if (abs(_X) <= 1)
> #declare _X = sgn(_X);
> #end
If I am not wrong, I think that sgn() only return 1 or -1, in this case I
believe it is better to do:
#if (abs(_X) > 1)
#declare _X = sgn(_X);
#end
Post a reply to this message
|
|