You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some very big numbers coming in from another system. For some reason, these can be larger than double.MaxValue and will come in as double.NaN. They're converted to string then sent to UnitsNet's Parse method, which fails throwing an exception: "Invalid string detected: a".
I think what should happen is that you get a length (or whatever) with a value of NaN.
I've written a test and made a change to the number regex which seems to pass the test. I'll make a pull request soon.
The text was updated successfully, but these errors were encountered:
I have some very big numbers coming in from another system. For some reason, these can be larger than double.MaxValue and will come in as double.NaN. They're converted to string then sent to UnitsNet's Parse method, which fails throwing an exception: "Invalid string detected: a".
I think what should happen is that you get a length (or whatever) with a value of NaN.
I've written a test and made a change to the number regex which seems to pass the test. I'll make a pull request soon.
The text was updated successfully, but these errors were encountered: