c++ cli - double::TryParse Issue -
I'm having a weird problem ... when I change a text box-> text to double, I get a number Why is it 99999999991 if there was a zero text box? Here is my example code:
number is equal to 0; If (! Double: TryParse (mTheText-> Text, theNumber)) {return false; }
Note that at the beginning zero is set twice and later called tryparse .99999999991 is set to be. I use this exact code elsewhere and it works fine What's going on here? Thank you.
Did you replace the number
with 0.0
0
?
Comments
Post a Comment