We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I cannot find the SIGNUM function, which returns the sign of its input (integer or double, scalar or vector, etc.). At https://comp.lang.idl-pvwave.narkive.com/jEV4l1KY/sign-function-signof-num-or-array-of-num, there are some versions provided, including the (expensive but robust?) following:
SIGNUM
GDL> x = [ -2e4, 5, 0, 1d/0, -1d/0, 0d/0 ] GDL> print, (x GT 0) -1* (x LT 0) -1 1 0 1 -1 0
Apparently, the SIGNUM function was introduced in IDL 8.3 (https://www.nv5geospatialsoftware.com/docs/SIGNUM.html). Maybe it could be a worthwhile addition at some point. Thank you!
IDL 8.3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, I cannot find the
SIGNUM
function, which returns the sign of its input (integer or double, scalar or vector, etc.). At https://comp.lang.idl-pvwave.narkive.com/jEV4l1KY/sign-function-signof-num-or-array-of-num, there are some versions provided, including the (expensive but robust?) following:Apparently, the
SIGNUM
function was introduced inIDL 8.3
(https://www.nv5geospatialsoftware.com/docs/SIGNUM.html). Maybe it could be a worthwhile addition at some point. Thank you!The text was updated successfully, but these errors were encountered: