Yes, clearly our reals should have __format__ support. In fact, this could work a lot better than the "%" formatting support we have now, which I think is provided by the "__float__" method. It has issues:
sage: '%.60f'%(pi.n(300),) '3.141592653589793115997963468544185161590576171875000000000000' sage: '%.10f'%(RR(10)^(10^10)) 'inf' I don't think we can fix that. I haven't been able to find the documentation that specifies that "__float__" is called on the argument meant to fill in for a %f field, but it's pretty clear that happens. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.