logo separator

[mkgmap-dev] Optimization for ExtTypeAttributes

From WanMil wmgcnfg at web.de on Thu Jan 10 19:33:57 GMT 2013

> WanMil wrote
>> So if you are english everything is fine but if you are german your
>> numbers are formatted and parsed with the "," as decimal separator.
>>
>> I don't know what locale is the best to use but something like
>> new DecimalFormat("0.0#", DecimalFormatSymbols.getInstance(Locale.US));
>> should work. What do you think?
>
> Sounds reasonable. I did never read the details about this class. I only
> wondered why Double.valueOf() is
> not good enough to parse a string.

It is possible that the value also contains a unit like "2.45ft". 
Double.valueOf() fails here.

WanMil


More information about the mkgmap-dev mailing list