Re: POC: rational number type (fractions)

From: Chapman Flack <chap(at)anastigmatix(dot)net>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Joe Nelson <joe(at)begriffs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: POC: rational number type (fractions)
Date: 2020-05-18 21:50:20
Message-ID: 5EC3031C.6020105@anastigmatix.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2020-05-18 22:14:36 Re: POC: rational number type (fractions)
Previous Message Peter Eisentraut 2020-05-18 21:40:20 Re: PostgresSQL project