+ 1

How to convert a textbox value (whole number) to double something like (0.00) in C#?

Getting textbox value and converting it to double.

24th Sep 2017, 3:29 PM
Abdul Hamid Durrani
Abdul Hamid Durrani - avatar
1 Answer
+ 1
Double.Parse("3.5") or Double.TryParse(value, out number) https://www.dotnetperls.com/parse every type has its helper methods int.parse and also double.parse if the conversion is not succesfull double.parse will throw a exception double.tryparse will just return false.
24th Sep 2017, 3:45 PM
sneeze
sneeze - avatar