From: Chapman Flack <chap@anastigmatix.net>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Joe Nelson <joe@begriffs.com>
To: pgsql-hackers@postgresql.org
Subject: Re: POC: rational number type (fractions)
Date: Mon, 18 May 2020 17:50:20 -0400
Message-ID: <5EC3031C.6020105@anastigmatix.net> (raw)
In-Reply-To: <0e2422da-953b-6b96-1900-f67c7e5e3307@2ndquadrant.com>
References: <20200208042554.GE42864@begriffs.com>
<0e2422da-953b-6b96-1900-f67c7e5e3307@2ndquadrant.com>
On 05/18/20 17:33, Peter Eisentraut wrote:
> The numeric type already stores rational numbers. How is this different?
> What's the use?
Seems like numeric is a base-10000 representation. Will work ok for
a rational whose denominator factors into 2s and 5s.
Won't ever quite represent, say, 1/3, no matter how big you let it get.
Regards,
-Chap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: chap@anastigmatix.net, peter.eisentraut@2ndquadrant.com, joe@begriffs.com
Subject: Re: POC: rational number type (fractions)
In-Reply-To: <5EC3031C.6020105@anastigmatix.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox