From: nobu.nokada@... Date: 2003-04-18T15:17:49+09:00 Subject: Re: Roundoff problem with Float and Marshal Hi, At Fri, 18 Apr 2003 15:00:58 +0900, Park Heesob wrote: > > I'd tried C99 style hexadecimal float. I expect this is > > portable (except for depending on frexp() and ldexp()), but > > could not be loaded by current version. > > > > But still, strtod() problem remains. > > > > > How about pack unpack method? Not Portable? Packing float is not portable at all. > For Float f, > f == [f].pack("G").unpack("G")[0] > is always true. True on same system. "Portability" means, you can unmarshal a data which was marshaled on another architecture. -- Nobu Nakada