hoodmane / longdivision

longdivision latex package
10 stars 0 forks source link

Decimals in Divisors Missing when Stage=0 #13

Open MurphysLab opened 5 months ago

MurphysLab commented 5 months ago

Decimals in divisors are not rendered when the user passes stage=0. For example, if the divisor is 2.50, it is displayed as 250 in the PDF. At stage=1 and beyond the decimal place is correctly displayed.

Here is a minimal example to illustrate:

\documentclass{article}

\usepackage{longdivision}

\begin{document}

\longdivision[stage=0]{2.50}{50}

\longdivision[stage=1]{2.50}{50} 

\longdivision[stage=2]{2.50}{50}

\end{document}

Here is how it was rendered using Overleaf:

longdivision-decimal-bug-example

(Your efforts on the package are appreciated; it's been a useful tool to have. Thank you.)

hoodmane commented 5 months ago

Thanks for the report @MurphysLab. Glad it's useful to you.

12 also seems to be a stage=0 problem. I wish it was easier to write latex test cases. The insane language semantics is nice, the lack of any ergonomic way to test is less nice.

One of these days I will take a break from my day job and come back to fix these...