On 7/22/10 2:26 PM, tvn wrote:
is there a trick to convert RealLiteral numbers to strings without
the trailing zeros? e.g., 2.000000000000 and 0.55550500000 become 2
and 0.555505 respectively --
For now, you can use the skip_zeroes argument to str:
sage: a=2.000000000000
sage: a
2.00000000000000
sage: a.str(skip_zeroes=True)
'2.'
I've written lots of code to make this feature more usable, but it's
undergoing a design discussion/reimplementation now.
Thanks,
Jason
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org