You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] fraction display preferences in DrRacket #802
Is your feature request related to a problem? Please describe.
I am frustrated when I want ratios to output as improper fractions however they only output as mixed fractions.
Describe the solution you'd like
I would like to go to the menu "Language" and choose the menu item "Choose Language ...".
Then I would like to Click the button "Show Details".
Then I would like the option to choose from the following options:
"Mixed fractions";
"Repeating decimals"; OR
"Improper fractions".
Describe alternatives you've considered
Currently I use right click on the output in the REPL and select "View as improper fraction". However, this option resets every time code is rerun. Therefore, I need to right click on the output each time to view the output as an improper fraction.
Do you want to contribute to this feature
I would love to help. However, I am only a beginner in coding and Racket. I am happy to help with testing and/or documentation though.
[Optional] Additional context
Please see screen shot for where the additional display option could be placed:
It looks like, in older versions of DrRacket, it would remember which option in the popup menu you'd chosen, and then use that one for newly rendered numbers. I see that behavior in v7.7, specifically, and I also see this commit which happened after 7.7 and is a change to the relevant code.
So it may be that the loss of this behavior (that the preferences is remembered) was an accidental side-effect of that change.
I'll leave this issue open in case @mikesperber wants to comment. It is easy enough to revert the commit or approach this in a different way. But I certainly have missed this functionality and am grateful for this issue that got me to take a look at the details.
Activity
[-][Feature Request] ...[/-][+][Feature Request] fraction display preferences in DrRacket[/+]rfindler commentedon Mar 6, 2026
It looks like, in older versions of DrRacket, it would remember which option in the popup menu you'd chosen, and then use that one for newly rendered numbers. I see that behavior in v7.7, specifically, and I also see this commit which happened after 7.7 and is a change to the relevant code.
So it may be that the loss of this behavior (that the preferences is remembered) was an accidental side-effect of that change.
rfindler commentedon Mar 6, 2026
I've restored the old behavior with this commit.
I'll leave this issue open in case @mikesperber wants to comment. It is easy enough to revert the commit or approach this in a different way. But I certainly have missed this functionality and am grateful for this issue that got me to take a look at the details.