Ask Your Question

naegling's profile - activity

2017-05-30 16:45:36 -0600 received badge  Nice Question (source)
2016-08-31 19:55:49 -0600 received badge  Famous Question (source)
2016-04-15 08:09:42 -0600 received badge  Notable Question (source)
2015-03-11 06:16:13 -0600 received badge  Student (source)
2014-08-07 08:49:37 -0600 received badge  Popular Question (source)
2012-11-09 19:01:16 -0600 received badge  Supporter (source)
2012-11-08 10:29:21 -0600 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 07:57:18 -0600 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.