Shachar Shemesh <shachar(at)shemesh(dot)biz> writes:
> As for the ARM architecture, I've pulled my sources, and the answer is
> this: ARM doesn't have one standard floating point format. Different ARM
> architectures will use different formats.
So how will you know which one is in use, which I'd think you'd need to
know to translate it?
> Most architectures will
> actually use IEEE, but some will use decimal based and such. According
> to my source (a distributor of ARM based hardware), none of the other
> formats will lose precision if translated to IEEE.
Your source appears fairly ignorant of things-float. If they really are
using decimal FP, it's easy to demonstrate that a lossless conversion
to/from binary representation of similar size is impossible. The set of
exactly representable values is simply different.
I have no objection to standardizing on IEEE-on-the-wire if you can
prove that's a superset of everything else. Unfortunately, you can't,
because it isn't. As soon as you get into lossy conversions, you might
as well use text and avoid the issue.
regards, tom lane
In response to
pgsql-hackers by date
|Next:||From: John DeSoi||Date: 2007-05-22 01:43:04|
|Subject: Re: pg_get_tabledef|
|Previous:||From: Kevin Grittner||Date: 2007-05-21 23:19:31|
|Subject: Re: Re: [Oledb-dev] double precision error with pglinux server, but not with windows pg server|