C# CultureInfo NumberFormat NumberDecimalSeparator Problem
- by Mahdi
I want to change NumberDecimalSeparator of my application from "." to "/". it works when i show float numbers in my textbox. but integer types are not shown at all.
I modify thread's culture to get application-wide formatting. my code is like this:
CultureInfo ci = new CultureInfo("fa-IR", true);
ci.NumberFormat.DigitSubstitution = DigitShapes.NativeNational;
ci.NumberFormat.NumberDecimalSeparator = "/";
Thread.CurrentThread.CurrentCulture = ci;
result:
3.14 = "3/14"
100 = ""
Any help please ?