| From: | Bruno Wolff III <bruno(at)wolff(dot)to> |
|---|---|
| To: | Gregory Stark <gsstark(at)mit(dot)edu> |
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org, Martijn van Oosterhout <kleptog(at)svana(dot)org> |
| Subject: | Re: Fixed length data types issue |
| Date: | 2006-09-22 15:07:37 |
| Message-ID: | 20060922150737.GA26249@wolff.to |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Mon, Sep 11, 2006 at 19:05:12 -0400,
Gregory Stark <gsstark(at)mit(dot)edu> wrote:
>
> I'm not sure how gmp and the others represent their data but my first guess is
> that there's no particular reason the base of the mantissa and exponent have
> to be the same as the base the exponent is interpreted as. That is, you can
> store a base 10 exponent but store it and the mantissa in two's complement
> integers.
You can also store numbers as a relatively prime numerator and denominator,
which will let store rational numbers exactly. Doing this isn't going to help
with speed of operations though.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2006-09-22 15:10:09 | Re: advisory locks and permissions |
| Previous Message | Tom Lane | 2006-09-22 14:44:04 | Re: [PATCHES] Include file in regress.c |