mirror of
https://github.com/tomka/rechnung.git
synced 2024-05-08 13:23:42 +02:00
Fix display of negative values
It seems like the code for writing out numbers couldn't handle negative numbers well. For instance, rendering -99,99 would result in -99,-9-9. This is fixed now by explicitly handling negative numbers slightly differently. There is possibly a more elegant version, but this is simple seems to fix it. Fixes tomka/rechnung#8
This commit is contained in:
parent
8a2fd555da
commit
8004153b65
|
@ -623,6 +623,9 @@
|
|||
\@tempcntb\@tempcnta
|
||||
\divide\@tempcnta100 \the\@tempcnta,%
|
||||
\multiply\@tempcnta100\advance\@tempcntb-\@tempcnta
|
||||
\ifnum#1<0
|
||||
\multiply\@tempcntb-1
|
||||
\fi
|
||||
\@tempcnta\@tempcntb\divide\@tempcnta10 \the\@tempcnta
|
||||
\multiply\@tempcnta10\advance\@tempcntb-\@tempcnta
|
||||
\the\@tempcntb
|
||||
|
|
Loading…
Reference in a new issue