If I write the following code

X = [0.1, 0.2]
html("Values: %s"%X)

the output is

Values: [10.1000000000000, 0.200000000000000]

How can I suppress the trailing zeros? How can I change the number of digits shown?

--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to