jtrinc / swiftui-currency-field

Currency field using SwiftUI, input RTL for PoS look and feel 🏦
MIT License
32 stars 4 forks source link

Currencies with three or zero fraction digits #4

Open Fesh-com opened 1 year ago

Fesh-com commented 1 year ago

Most arabic currencies do not have two, but three fractional digits. And japanese Yen, south korean Won and some other currencies do not have fractions at all - only whole numbers.

See https://docs.adyen.com/development-resources/currency-codes

benjidea commented 6 months ago

As far as I understand it, this is already supported. However, you are not allowed to set fixed values in the NumberFormmater for "minimumFractionDigits" and "maximumFractionDigits".

Bildschirmfoto 2024-04-13 um 20 40 55