Skip to content

Commit e9fb759

Browse files
committed
Ans Floating point bug
1 parent ffae7e5 commit e9fb759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyaron/polygon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def area(self):
3232
ans = ans + a[0] * b[1] - a[1] * b[0]
3333
if ans < 0:
3434
ans = -ans
35-
ans = ans / 2
35+
ans = ans / 2.0
3636
return ans
3737

3838
#generate a convex hull with n points

0 commit comments

Comments
 (0)