You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Had anyone thought that it might be very useful to have a NumberFormat.prototype.parse which does the opposite of format?
It can be very useful to know how a certain formatted number can be parsed since in different locales different symbols (such as decimal marks) can have different meaning.
So for example:
newIntl.NumberFormat('ja-JP',{style: 'currency',currency: 'JPY'}).format(123456.789)// '¥123,457'newIntl.NumberFormat('ja-JP').parse('¥123,457')// would return something like { currency: 'JPY', value: 123457 }
The text was updated successfully, but these errors were encountered:
Had anyone thought that it might be very useful to have a
NumberFormat.prototype.parse
which does the opposite offormat
?It can be very useful to know how a certain formatted number can be parsed since in different locales different symbols (such as decimal marks) can have different meaning.
So for example:
The text was updated successfully, but these errors were encountered: