Skip to content

Commit

Permalink
bug: Low precion of 28 caused inconsistent results
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu committed Nov 29, 2019
1 parent 77d6dbd commit fde6d2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vyper/parser/parser_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ast as python_ast
from decimal import (
Decimal,
getcontext,
)
from typing import (
Any,
Expand Down Expand Up @@ -51,6 +52,8 @@
SizeLimits,
)

getcontext().prec = 78 # MAX_UINT256 < 1e78


# Get a decimal number as a fraction with denominator multiple of 10
def get_number_as_fraction(expr, context):
Expand Down

0 comments on commit fde6d2b

Please sign in to comment.