test for integer value
esalomon
Hello,
Using a "if" statement how can I evaluate if a global variable (or wave) is an integer or not ?
Any idea or solution are welcome.
many thanks,
all the best
e.
Forum
Support
Gallery
Igor Pro 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More
if( val == trunc(val) )
Print "integer"
else
Print "non-integer"
endif
October 7, 2019 at 11:43 am - Permalink
In reply to Variable val=pi if( val ==… by JimProuty
perfect.
thanks.
e.
October 7, 2019 at 12:25 pm - Permalink