Description
Default fractional currency of USD in Commerce Connect sets to "2". If you want to change it to other numbers as "4", you need to customize the CurrencyDecimalDigits of NumberFormatInfo to the decimal places as expected.
Steps
Add the below code in ConfigureServices() method of Startup.cs.
var usd = new Currency("USD");
var format = (NumberFormatInfo)usd.Format.Clone();
format.CurrencyDecimalDigits = 4;
Currency.SetFormat("USD", format);
Please sign in to leave a comment.