Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decimals in Divisors Missing when Stage=0 #13

Open
MurphysLab opened this issue May 29, 2024 · 1 comment
Open

Decimals in Divisors Missing when Stage=0 #13

MurphysLab opened this issue May 29, 2024 · 1 comment

Comments

@MurphysLab
Copy link

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
Copy link
Owner

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants