-----BEGIN PGP SIGNED MESSAGE-----
On Fri, Sep 29, 2006 at 10:43:53PM -0700, David Fetter wrote:
> On Sat, Sep 30, 2006 at 04:42:13AM +0000, tomas(at)tuxteam(dot)de wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > On Fri, Sep 29, 2006 at 12:19:07PM +0200, Martijn van Oosterhout wrote:
> > > On Thu, Sep 28, 2006 at 06:32:11PM -0500, Jim C. Nasby wrote:
[15 bit for three upcase ASCII]
> I feel silly for even mentioning this, but there are less than 256
> countries in the UN, and as far as I know, each has at most one
> currency, so you could use 8 bits instead of 15.
Hm. But then you'd have to cope with a mapping (currency-id ->
description) which changes over time. Maybe it'd suffice to postulate
that "no id be reused".
> > That leaves forty-eightish bits for the number or about 10^14.
> By the above calculation, 56 bits or about 7.2 * 10^16.
Yes, way more useful than 10^14 (about a hundred times ;)
> It's not just dependent on time. Exchange rates vary in such a way
> that the relationships are not always transitive :P
- -- tomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
-----END PGP SIGNATURE-----
In response to
pgsql-hackers by date
|Next:||From: Markus Schaber||Date: 2006-09-30 10:25:25|
|Subject: Re: Backup and restore through JDBC|
|Previous:||From: David Fetter||Date: 2006-09-30 05:43:53|
|Subject: Re: New version of money type|