digits / units setup
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
According to docs, \setupunit[method=3] should change the rendering of numbers in \unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”, but it doesn’t. \setdigitmode{3} works, though. Hraban
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Am 24.08.24 um 20:38 schrieb Henning Hraban Ramm:
According to docs,
\setupunit[method=3]
should change the rendering of numbers in
\unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”,
but it doesn’t.
\setdigitmode{3} works, though.
Seems to be a problem of my environment. In a minimal example, \setupunit changes \unit, \setdigitmode changes \digits. Sorry for the noise. Hraban
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
Next try: Apparently, \setupunit affects only \unit, for \digits you still need \setdigitmode (and \setdigitorder). Is this intentional? Also, \spaceddigits works only with decimal point input and doesn’t react to any of the above settings, while \unit and \digits expect me to insert a thousands comma manually. Does this make sense? Hraban
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
Henning Hraban Ramm schrieb am 24.08.2024 um 20:59:
Am 24.08.24 um 20:38 schrieb Henning Hraban Ramm:
According to docs,
\setupunit[method=3]
should change the rendering of numbers in
\unit{10,123.99 mm} or \digits{10,123.99} to “10\,123,99”,
but it doesn’t.
\setdigitmode{3} works, though.
Seems to be a problem of my environment.
In a minimal example, \setupunit changes \unit, \setdigitmode changes \digits.
The \digits mechanism was never extended to provide a basic setup mechanism which means you have to use the \set... commands to change the output. Wolfgang
participants (2)
-
Henning Hraban Ramm
-
Wolfgang Schuster