Thursday, July 30, 2009

Calculation in different language + C#?

guys I need to do Integer or double operation in C# for different language.


But my problem is if i try to convert numeric characters of other language it throws exception. but works for english (e.g 1,2,3.....,9)


How do i do it. Microsoft excel can do this type of calculation for different languages (e.g. in Bengali)

Calculation in different language + C#?
Have a look at CultureInfo. There's a lot of support in C# for these various things, and I've written code that lets you enter numbers in the American style (3.14) versus the European (3,14). It will help with dates tool.


No comments:

Post a Comment