Re: Working with fixed-point calculations in C

From: "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Working with fixed-point calculations in C
Date: 2021-12-08 11:03:36
Message-ID: 20211208110336.bzux5hvczdamk2qk@hjp.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2021-12-07 22:41:38 -0500, Tom Lane wrote:
> I think what you are looking for is NUMERIC. (The type name NUMBER
> is an Oracle-ism, I believe. I'm not sure how closely that corresponds
> to our NUMERIC.)

Not very. Oracle NUMBER is a decimal floating point number with a 38
digit mantissa stored in a variable length format.

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp(at)hjp(dot)at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shaozhong SHI 2021-12-08 12:07:13 How to allow null as an option when using regexp_matches?
Previous Message Peter Eisentraut 2021-12-08 10:49:36 Re: error connecting to pgbouncer admin console