* Math library question
@ 1995-08-11 4:00 Dave Newbold
1995-08-30 4:00 ` Bill Gray
0 siblings, 1 reply; 2+ messages in thread
From: Dave Newbold @ 1995-08-11 4:00 UTC (permalink / raw)
Hi,
Does anybody know why the following happens, when using the fp_classf routine
under OSF1/3.0? (The 31 isn't special - just a small integer)
fp_classf((int)31)==FP_POS_ZERO
The (int)31 should be equivalent to a denormalised floating point number, or
at least a NaN... not a zero, as far as I can see. Is this a bug, or am I
overlooking something?
TIA,
_Dave_
------------------------------------------------------------------------------
The opinions expressed here are not necessarily those of any other person
object or organisation. So don't sue them.
dave.newbold@bristol.ac.uk / dmn@vsnhd1.cern.ch / newbold@vxcern.cern.ch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Math library question
1995-08-11 4:00 Math library question Dave Newbold
@ 1995-08-30 4:00 ` Bill Gray
0 siblings, 0 replies; 2+ messages in thread
From: Bill Gray @ 1995-08-30 4:00 UTC (permalink / raw)
To: dave.newbold
re: fp_classf((int)31)==FP_POS_ZERO
Fp_classf expects a float and there probably was no prototype.
Try something like:
int i = 31;
fp_classf( *(float *)&i );
--
Bill Gray gray@afire.zko.dec.com (Not speaking for Digital)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-08-30 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-08-11 4:00 Math library question Dave Newbold
1995-08-30 4:00 ` Bill Gray
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox