You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sage: RealNumber("1ffef", base=16)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/opt/sage-4.3.3/<ipython console> in <module>()
/opt/sage-4.3.3/local/lib/python2.6/site-packages/sage/rings/real_mpfr.so in sage.rings.real_mpfr.create_RealNumber (sage/rings/real_mpfr.c:25128)()
ValueError: invalid literal for int() with base 10: 'f'
The problem arises because 'e' is incorrectly parsed as the mantissa/exponent delimiter. If Sage wants to follow MPFR in this regard, '@' should be used as a delimiter for base > 10.
The problem arises because 'e' is incorrectly parsed as the mantissa/exponent delimiter. If Sage wants to follow MPFR in this regard, '@' should be used as a delimiter for base > 10.
CC: @jasongrout
Component: numerical
Keywords: hexadecimal, string conversion
Issue created by migration from https://trac.sagemath.org/ticket/8554
The text was updated successfully, but these errors were encountered: