develooper Front page | perl.perl5.porters | Postings from August 2021

Re: Pre-RFC decimal data type

Thread Previous | Thread Next
Craig A. Berry
August 5, 2021 12:30
Re: Pre-RFC decimal data type
Message ID:
On Thu, Aug 5, 2021 at 4:36 AM Nicholas Clark <> wrote:

> Possibly more useful would be a decimal arithmetic library written in C,
> with a suitable licence.

There is the decNumber package in GCC
(<>) which
is presumably some version of GPL.  It's also in ICU, which probably
has a more permissive license.

There is something called lipmpdec in Python:
It's available independently at
<> and says
"simplified BSD license."

One of the open source SQL databases may have an implementation of the
SQL NUMERIC data type that could be adapted.

Don't really know anything about these -- just did a few minutes of
web searching.

> Also, as there (IIRC) there's now an IEEE spec for decimal types,

It appears to be called x3.274-1996 but costs money from the ANSI store.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About