digits / units setup

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

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

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

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