Skip to content

Commit

Permalink
don't fail if long double isn't there
Browse files Browse the repository at this point in the history
  • Loading branch information
malb committed Feb 11, 2018
1 parent 208d78a commit d98c4a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fpylll/util.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,14 @@ def get_precision(float_type="mpfr"):
This function returns the precision per type::
>>> import fpylll
>>> from fpylll import FPLLL
>>> FPLLL.get_precision('double')
53
>>> FPLLL.get_precision('long double')
>>> if fpylll.config.have_long_double:
... FPLLL.get_precision('long double')
... else:
... 64
64
>>> FPLLL.get_precision('dpe')
53
Expand Down

0 comments on commit d98c4a1

Please sign in to comment.