Proposal - Introduce NumberFormat::TYPE_DECIMAL
| From: | Marcos Passos | Date: | Sun, 14 Oct 2018 17:00:52 +0000 |
| Subject: | Proposal - Introduce NumberFormat::TYPE_DECIMAL | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-103317@lists.php.net to get a copy of this message | ||
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>
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