Convert String to Float

  • Thread starter Thread starter Aaron
  • Start date Start date
A

Aaron

Why can I not convert text from a text box to a float value. The text will
always be in the form of 0.00. No matter what System.Convert method I use I
get errors about the conversion that states cannot covert this to a that. I
could not find any help in the archives on this type of topic.

Thanks
 
Got it, didn't see it in the help at first but I was looking for
System.Convert.ToDouble();
 
How can I cut a number off that I got from a textbox? I need to cut the
number off at the decimal without rounding, i.e. 7.6958 would be just 7. I
already have the number in a double format, just can't figure out how to cut
it off.
 
Back
Top