Re: Proposal - Introduce NumberFormat::TYPE_DECIMAL
| From: | Benjamin Morel | Date: | Mon, 29 Oct 2018 14:23:08 +0000 |
| Subject: | Re: Proposal - Introduce NumberFormat::TYPE_DECIMAL | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-103410@lists.php.net to get a copy of this message | ||
> I would like to propose introducing a new constant
> NumberFormat::TYPE_DECIMAL to allow parsing and formatting decimal strings..
I would definitely see a value for this feature; this would be particularly useful in a wide range
of use cases, including math & money libraries.
You should probably submit a PR to move forward and get additional feedback!
> Le 14 oct. 2018 à 19:00, Marcos Passos <marcospassos.com@gmail.com> a écrit :
>
> Hello everyone!
>
> I would like to propose introducing a new constant
> NumberFormat::TYPE_DECIMAL to allow parsing and formatting decimal strings..
> This constant would only expose the method parseDecimal
>
> <http://icu-project.org/apiref/icu4c/unum_8h.html#a59870a322f012dc1b9d99cf8a7b708f1>
> /formatDecimal
>
> <http://icu-project.org/apiref/icu4c/unum_8h.html#af80334a90b37b2d5c41bd9db00c98687Šé¤¾:Ò�#�I½íŠ{
> >
> from the ICU library. It would bring many possibilities for libraries that
> work with precise numbers, such as arbitrary precision math (even BC-math)
> and monetary values.
>
> What do you think?
>
> - Marcos Passos
>
> --000000000000071db80578334438--
>