From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,33e51965b8bc3945,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-25 05:01:43 PST Path: bga.com!news.sprintlink.net!hookup!usc!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!uunet!news1.hh.ab.com!usenet From: rep@icd.ab.com (Robert E. Pappenhagen) Newsgroups: comp.unix.osf.osf1 Subject: How to convert Vax float to AXP OSF float Date: 25 Aug 1994 11:55:54 GMT Organization: Allen-Bradley Company, Inc. Distribution: world Message-ID: <33i0sa$471@news1.hh.ab.com> NNTP-Posting-Host: odin.cle.ab.com 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