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

Re: Pre-RFC decimal data type

Thread Previous | Thread Next
From:
Yuki Kimoto
Date:
October 16, 2021 01:37
Subject:
Re: Pre-RFC decimal data type
Message ID:
CAExogxNPhybKYBRJYB+wbgFMrQHMyB+0bv2-9fro+_XBBkZ0Sw@mail.gmail.com
2021-10-15 5:57 Neil Bowers <neilb@neilb.org> wrote:

Hi Ovid,
>
> Since we're talking about wishes, would a decimal type be interesting? […]For
> what it's worth (not much), here's a Wikipedia page:
> https://en.wikipedia.org/wiki/Decimal_data_type
>
>
> Seems like this thread has fizzled out. Would it be fair to put this in a
> "would be nice" pot, rather than "want to seriously pursue"?
>
> Feels like a candidate for experimentation on CPAN.
>
> Also, take a look at
> https://metacpan.org/pod/Math::Decimal
>
> Neil
>

 I see this.

Porters, I have one question. What do you do when you save a value to
mysql's DECIMAL type (fixed point)?

Using merely the string "100.2343"?

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About