On Dec 12, 2:39 pm, v...@ukr.net wrote:
> On Mon, 12 Dec 2011 07:16:17 -0600Jason Grout <jason-s...@creativetrax.com> 
> wrote:
>
> > sage: round(-0.0280000000000200,12)
> > -0.028
>
> > See
> >http://www.sagemath.org/doc/reference/sage/misc/functional.html?#sage...
>
>   Thanks a lot! :)
>   It looks like I really should improve my searching skills. Usually I
> find the answers to any Sage-related questions very quickly, but this
> was not the case for some reason.
>   Anyway, everything seems to be clear to me now.
>
>   Thanks again to all of you. :)
>
>   Vladimir
>
> -----
>  <v...@ukr.net>

Remember also that you can control print format without rounding

sage: a,b,c=289.575000000000, 289.617000000000, -0.0280000000000200
sage: print (a,b,c)
(289.575000000000, 289.617000000000, -0.0280000000000200)
sage: print '%10.4f %10.4f %10.4f' % (a,b,c)
  289.5750   289.6170    -0.0280

Andrzej Chrzeszczyk

-- 
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