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
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