Hi, In an attempt to improve #14567, I found the following thing (which for me is a bug). Consider the different real fields with rounding RNDD or RNDU. Then -pi is systematically wrongly approximated. The given input {{{ a = -pi for rnd in 'RNDD','RNDU','RNDZ': R = RealField(15,rnd=rnd) s,m,e = R(a).sign_mantissa_exponent() print rnd, m }}} gives me {{{ RNDD 25735 RNDU 25736 RNDZ 25735 }}} Where I do expect {{{ RNDD 25736 RNDU 25735 RNDZ 25735 }}}
Note that the conversion works very well for rational numbers but also fails on number field elements (by replacing a above by NumberField(x^3 - 2, 'a', embedding=1.25).gen()). Best, Vincent -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en. For more options, visit https://groups.google.com/groups/opt_out.