Date: Fri, 29 Jul 94 16:16:45 +0200 From: pascal DOT richard AT art DOT alcatel DOT fr (Pascal RICHARD) To: combee AT cambridge DOT scr DOT slb DOT com Subject: Re: help with reading floats from file Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Perhaps you must swap low and bytes (0 <-> 3 and 1 <-> 2). To verify, try my little ugly prgm which dump (low byte to high byte) 3 floating point variables (float, double and long double). On my SUN, it prints : 40 06 66 66 40 00 CC CC CC CC CC CD 40 00 CC CC CC CC CC CD ------------ cut here ------------ #include float f = 2.1; /*long float lf = 2.1;*/ double d = 2.1; long double ld = 2.1; #define PRINT(var) for (i=0 ; i