Skip to content

[Feature Request] fraction display preferences in DrRacket #802

Open

Description

@justintonation

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:

Image

Activity

  1. changed the title [-][Feature Request] ...[/-] [+][Feature Request] fraction display preferences in DrRacket[/+] on Mar 1, 2026
  2. transferred this issue fromracket/racketon Mar 1, 2026
  3. rfindler commented on Mar 6, 2026

    @rfindler
    Member

    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.

  4. rfindler commented on Mar 6, 2026

    @rfindler
    Member

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions