SafeMapper icon indicating copy to clipboard operation
SafeMapper copied to clipboard

Issue converting double.MaxValue

Open AleRoe opened this issue 7 years ago • 0 comments

Hi!

seems like SafeMapper has issues when converting edge cases (i.e. MaxValue for double) The test bellow fails.

[TestMethod] public void SafeMapTest() { double d = double.MaxValue; string value = d.ToString("R"); var result = SafeMap.Convert<string, double>(value); Assert.AreEqual(d, result); }

Any ideas?

Thanks Alexander

AleRoe avatar Aug 10 '17 23:08 AleRoe