[Bug 46842] C# double.TryParse( String.Empty, out number) succeeds with .NET Framework 4.0 when it should not
wine-bugs at winehq.org
wine-bugs at winehq.org
Fri Mar 15 13:28:56 CDT 2019
https://bugs.winehq.org/show_bug.cgi?id=46842
--- Comment #5 from IanS <MyBugzilla at mailinator.com> ---
On Windows I get the same output as you.
But on my Wine/Linux box I get
// '1,643.57' --> 1643.57
// Unable to parse '$1,643.57'.
// '-1.643e6' --> -1643000
// '-168934617882109132' --> -1.68934617882109E+17
// Unable to parse '123AE6'.
// Unable to parse ''.
// '' --> // Weird //
// Unable to parse 'ABCDEF'.
Something really strange going on. '' --> shows that it parsed successfully but
the number is missing.
But. Strangely, even though the number is missing it's possible to do something
like:
if(number > 5002)
MessageBox.Show("number is bigger than 5002")
Actually comparing the double with 5002 in my app is where I notice the glitch
in the first place. Even though the double appears to be empty it still has a
value bigger than 5002. I wonder how bit it is?
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list