vb.net - Is it possible to convert vb6 "Val()" to c#? - Stack Overflow
From your examples it could look similar to this. But since I don't know the VB val specification it might not work on all strings correctly. Decimal ParseNumerString(string s) { Decimal value=0; Decimal multiplier=1; bool decimalPart=false; foreach(char ...