KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Application deals with strings that represent decimals that come from different cultures. For example "1.1 and "1,1" is the same value. I played with Decimal.TryParse flags combinations but couldn't achieve the result I want. "1,1" became "11" or "0" after all. Is it possible to convert such strings to decimal in one line of code without pre-replacing "," char to "." or playing with NumberFormat.NumberDecimalSeparator ? How do you handle such situations? Thank you in advance!
Tags (comma-separated)
Save Edits
Cancel