Currently ToMetric() has no option to consider the current locale's long/short-scale preference. For example, I'd like to render 1000^3 as 1 billion in an English locale and 1 milliard, but currently I'd have to manually pick the correct MetricNumeralFormats.Use[Long|Short]ScaleWord option
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE");
(1000 * 1000 * 1000).ToMetric(decimals: 2); // should return "1 milliard"
Thread.CurrentThread.CurrentUICulture = new CultureInfo("de-DE");
(1000 * 1000 * 1000).ToMetric(decimals: 2); // should return "1 milliard"
I suppose this could be a new flag, maybe called MetricNumeralFormats.UseScaleWord
There's a similar issue with the "Numbers to numbers" converter, it ignores the locale. For example:
1.25.Billions() => 1250000000
This is only true for the short-scale system
Currently ToMetric() has no option to consider the current locale's long/short-scale preference. For example, I'd like to render
1000^3as1 billionin an English locale and1 milliard, but currently I'd have to manually pick the correctMetricNumeralFormats.Use[Long|Short]ScaleWordoptionI suppose this could be a new flag, maybe called
MetricNumeralFormats.UseScaleWordThere's a similar issue with the "Numbers to numbers" converter, it ignores the locale. For example:
1.25.Billions() => 1250000000This is only true for the short-scale system