How can I convert a double to a string using the country’s formatting and back again to a string?
For example if the number is Pi and I’m in France, I want the conversion to string to produce “3,14” with rounding of 2 decimal places and then convert “3,14” back to the rounded floating point value of 3.14 if I’m still in France but produce an error if I’m in the United States.
Likewise, if the string was “3,141” in the United states, it should parse to 3141.0, since commas in the United States are used as numeric separators.
If this isn’t possible, how much I18N floating point support is there in Kotlin and where can I read about it? Thanks.