3

Some countries use , instead of . in a decimal. Unfortunately, a 2D coordinate, for example (2,3,4), becomes ambiguous for readers.

How to avoid this?

8
  • a semicolon? perhaps
    – Yan Zhou
    Jun 10, 2011 at 0:24
  • Brazil uses colon as a decimal separator. We are told to use a semicolon when dealing with non-integer coordinates, e.g. (1,5 ; 2,5). EDIT: In some cases, people suppress the value separator, e.g. (1,5 2,5). Jun 10, 2011 at 0:41
  • 3
    This seems off-topic for this site.
    – Lev Bishop
    Jun 10, 2011 at 1:54
  • 1
    @Altermundus: have you tried \ensuremath{\cdot} command?
    – Crowley
    Jun 10, 2011 at 5:10
  • 1
    @Caramdir Yes I think it would be preferable to reformulate the question : Something like How to avoid confusion between special characters and delimiters or separators Jun 10, 2011 at 6:13

1 Answer 1

2

The only case where this question is not off-topic is the case where someone like a french tex's user tries to use a list for example in a \foreach list. When the ,is a separator you need to hide your math , inside a tex group {...}

Example

\foreach \n in {1,2,{2,718},3,{3,14}}

Now it's possible with the package numprint with babel and with siunitxto write numbers with dot and when you need to print the numbers to get the good syntax according to the country.

0

Not the answer you're looking for? Browse other questions tagged .