Open damirstuhec opened 8 years ago
@danthorpe Any update on this?
Hi @damirstuhec - sorry - not had time to look into this. The issue is undoubtedly a NSLocale
issue. What is the regions / language settings of your simulator/device?
@danthorpe No problem.
Simulator Language: English Region: US
Device Language: English Region: Slovenia
Okay, so the positioning of the US$
is not an error - that is how NSNumberFormatter
formats US dollars for Slovenia.
The US
in the simulator though - that might well be an error...
Ok, I see. But given the same locale, simulator and device should yield the same results, right?
Correct - given the same region settings, print(USD(30.5))
should yield the same result across all platforms including simulators.
Ok, thanks. Will stay tuned about the fix on simulator.
README states the following:
However, I'm seeing the following result:
Simulator:
Device:
As you can see, there is extra locale US printed before the currency amount. Also, the locale is printed before on simulator and after the amount on device. Also, there is a different separator being used. This is not aligned with README.
How can one control all of those things?
Also, I'll take this opportunity and ask how can one optionally remove the fraction numbers in case of a whole amount?
cc @danthorpe