[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51580] isa: compatibility with isfloat, isint
From: |
Ernst Reissner |
Subject: |
[Octave-bug-tracker] [bug #51580] isa: compatibility with isfloat, isinteger and isnumeric |
Date: |
Thu, 27 Jul 2017 04:01:59 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0 |
Follow-up Comment #2, bug #51580 (project octave):
Well, if you have a look at help isa,
then it turns out that for isa(x,"float"),
float is not really a class,
it is interpreted as 'floating point value'
comprising classes double and single.
So further classes may represent floats.
For classes double and single, the function isfloat(x)
returns true indicating that these are floats.
If I write my own class, then I would also define isfloat(x)
returning true.
Then isa(x,"float") can determine whether it is a float
just asking isfloat(x).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51580>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/