Skip to content
Permalink
Browse files

Fix unsupported operand type(s)

Trigonometric functions in degrees mode with real numbers yields
an error "unsupported operand time (s) for *:'Decimal' and 'float'"

http://git.sugarlabs.org/calculate/mainline/merge_requests/18
Fixes https://bugs.sugarlabs.org/ticket/3078
Fixes #44
  • Loading branch information...
curiousguy13 authored and quozl committed Jun 24, 2019
1 parent 0e833c6 commit 5b510526db1d2d8ab78a85300e577500265e5e3b
Showing with 1 addition and 1 deletion.
  1. +1 −1 mathlib.py
@@ -52,7 +52,7 @@ def format_bin(n):


class MathLib:
ANGLE_DEG = math.pi / 180
ANGLE_DEG = Decimal(math.pi / 180)
ANGLE_RAD = 1
ANGLE_GRAD = 1

0 comments on commit 5b51052

Please sign in to comment.
You can’t perform that action at this time.