Re: Native type for storing fractions (e.g 1/3)? - Mailing list pgsql-general

From Stephane Bortzmeyer
Subject Re: Native type for storing fractions (e.g 1/3)?
Date
Msg-id 20070315130741.GA5993@nic.fr
Whole thread Raw
In response to Re: Native type for storing fractions (e.g 1/3)?  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Native type for storing fractions (e.g 1/3)?  ("John D. Burger" <john@mitre.org>)
List pgsql-general
On Thu, Mar 15, 2007 at 07:41:18AM +0100,
 Peter Eisentraut <peter_e@gmx.net> wrote
 a message of 22 lines which said:

> His goal may be to store and compute rational numbers exactly.  The
> answer is that there is no data type in PostgreSQL that supports
> this.

But he can write one in PostgreSQL quite easily. Rational numbers are
always the first exercice in CS courses about Abstract Data Types :-)

http://www.postgresql.org/docs/8.0/interactive/xtypes.html

pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Native type for storing fractions (e.g 1/3)?
Next
From: "Alexi Gen"
Date:
Subject: Role & User - Inheritance?