Hi Marc! On 12 Dez., 15:48, Jason Grout <jason-s...@creativetrax.com> wrote: > marcW wrote: [...] > If you don't care about precision (i.e., all numbers are rounded off to > 2-3 digits), then you can declare your numbers this way: > > sage: R=RealField(15) > sage: R(pi) [...]
Or, if you *do* care about the precision in the computation, but don't want to see more then 3 digits in the final result, you may do sage: print 1.0 1.00000000000000 sage: print '%.3f'%1.0 1.000 I.e., convert the numbers in a formatted string. Cheers, Simon -- 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