On 24 bře, 01:34, Dan Drake <[email protected]> wrote:
> On Tue, 23 Mar 2010 at 07:25AM -0700, iDan wrote:
> > Hi,
> > In french, we use comma as decimal separator.  How can I convert the
> > result of the instruction \sage{} (from sagetex package) ?
>
> Hrm, unfortunately, I don't think this is possible right now.
>
> You can have Sage insert a comma in this way:
>
> sage: x = 1.234
> sage: x.str().replace('.', ',')
> '1,23400000000000'
>
> so in your TeX file, you could do
>
> $\sage{(sqrt(3)).str().replace('.', ',')}$
>
> which is not very pleasant.

And note the difference between $12,13212$ and $12{,}13212$  - the
first one has incorrect spacing in TeX!

Robert

btw: Anyway, we use also comma as separator for decimal places and it
is very uncomfortable in many other situations. My suggestion is to
switch the separator used in France and Czech from comma to dot :)

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

To unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to