From: rep@icd.ab.com (Robert E. Pappenhagen)
Subject: How to convert Vax float to AXP OSF float
Date: 25 Aug 1994 11:55:54 GMT [thread overview]
Message-ID: <33i0sa$471@news1.hh.ab.com> (raw)
Okay I give up....
I need to convert VAX floats into IEEE floats on my AXP OSF machine.
I have a function that works for all numbers > FLT_MIN but the valid
values between FLT_MIN and VAX_FLT_MIN cause a core dump on the AXP OSF
machine. I'd like these values to be zero. Is there a way to tell
based on the bit pattern if a float is in this tiny range so I can
force it to zero ??? Should I convert the VAX float to a double and then
compare it to FLT_MIN and set it to zero if it is to small ??? does
the C library or the math library provide a function to convert for me ???
Thanks for your help .... BoB
reply other threads:[~1994-08-25 11:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox