We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffae7e5 commit e9fb759Copy full SHA for e9fb759
cyaron/polygon.py
@@ -32,7 +32,7 @@ def area(self):
32
ans = ans + a[0] * b[1] - a[1] * b[0]
33
if ans < 0:
34
ans = -ans
35
- ans = ans / 2
+ ans = ans / 2.0
36
return ans
37
38
#generate a convex hull with n points
0 commit comments