[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to test for "integer"?
From: |
Robert A. Macy |
Subject: |
How to test for "integer"? |
Date: |
Sun, 15 May 2005 12:32:01 -0700 |
Group,
Is there a direct test for integer?
I've been using
if (abs(mod(n,1))==0)
msg="n is an integer"
endif
which works great.
I looked through the octave manual and didn't recognize an
"integer" test.
- Robert -
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- How to test for "integer"?,
Robert A. Macy <=