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

Stepper does not respect "Fraction Style" #180

Open
LiberalArtist opened this issue Oct 6, 2022 · 1 comment
Open

Stepper does not respect "Fraction Style" #180

LiberalArtist opened this issue Oct 6, 2022 · 1 comment
Assignees

Comments

@LiberalArtist
Copy link
Contributor

The teaching languages allow you to set the "Fraction Style" to either "Mixed fractions" or "Repeating decimals":

Screenshot of "Choose Language" window showing the details for the teaching languages.

However, the Stepper does not respect this choice. For example, 8.30167 (in HtDP lexical syntax, so an exact number) is printed by the stepper as 830167/100000, which is neither a "mixed fraction" not a "repeating decimal".

I haven't investigated the other options under "Output Syntax".

@jbclements jbclements self-assigned this Nov 4, 2023
@jbclements
Copy link
Contributor

Sorry for not commenting sooner. I'm not super-surprised here. This might be easy, but I'm guessing it might not. Specifically, the way that the stepper generates this text involves some unorthodox use of code-copying around the print-convert family of functions. The big-picture problem has to do with formatting output text but also obtaining the printed buffer locations of the beginning and ending of certain elements of the printed buffer. It may very well be that there's now an interface that provides a more disciplined way to do this. I should at least ask around.

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

No branches or pull requests

2 participants