Skip to content

Commit

Permalink
Use gen.precision for the default accuracy.
Browse files Browse the repository at this point in the history
  • Loading branch information
culler committed Jan 7, 2025
1 parent 7f0bac4 commit a2012b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def __init__(self, data, accuracy=None, precision=None):
self.accuracy = self.decimal_precision
else:
if accuracy is None:
accuracy = prec_bits_to_dec(64 * self.gen.sizeword())
accuracy = self.gen.precision()
self.accuracy = min(accuracy, self.decimal_precision)
self._parent = SnapPyNumbers(self._precision)
if _within_sage:
Expand Down

0 comments on commit a2012b0

Please sign in to comment.