Ask Your Question

naegling's profile - activity

2017-05-30 23:45:36 +0200 received badge  Nice Question (source)
2016-09-01 02:55:49 +0200 received badge  Famous Question (source)
2016-04-15 15:09:42 +0200 received badge  Notable Question (source)
2015-03-11 12:16:13 +0200 received badge  Student (source)
2014-08-07 15:49:37 +0200 received badge  Popular Question (source)
2012-11-10 02:01:16 +0200 received badge  Supporter (source)
2012-11-08 17:29:21 +0200 commented answer formatting numbers in sagetex

Yes, that would work for this example, but what in the general case \sage{x} where x is the result of some calculation I can't just call .n(6) on the result because there are non-numeric variables. Does this mean that I should call .n on all the floating point numbers as they enter into the calculation?

2012-11-08 14:57:18 +0200 asked a question formatting numbers in sagetex

If I put (for example) \sage{1.2*V} in my .tex file the resulting pdf has

1.20000000000000 V

How can I tell it to not print trailing zeros?

Thanks.