This bug is actually very bad:
>>> import System >>> System.Math.Abs(42.5) 42L >>> System.Math.Abs(42.55) 42L
submitted by @antocuni on:
http://sourceforge.net/p/pythonnet/bugs/5/
the patch #137 works with following expressions in Python:
System.Math.Abs(-50.5) # 50.5 System.Math.Max(50.5,50.1) # 50.5 System.Math.Max(System.Double(10.5),System.Double(15.5)) # 15.5 System.Math.Max(System.Double(50.5),50.1) # 50.5
Fix bug where the wrong overload is selected.
Add overload tests from #131
Rebase with master (#2)
Activity
den-run-ai commented on Feb 9, 2016
the patch #137 works with following expressions in Python:
Fix bug where the wrong overload is selected.
Fix bug where the wrong overload is selected.
Add overload tests from #131
Rebase with master (#2)