c# - How to validate negative string number -


this question has answer here:

i'm doing c# wpf application. may know how validate string value? example "0.00" or "-1.00",etc?

because both of them return string retrieve sap, there anyway check?

sorry i'm still new c# , not familiar function have in c#.

i assume want check if number negative number?

double number = 0; if(double.tryparse(mystring,out number)){    if (number > 0)        \\do } 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -