Doubling a recipe produced unreadable decimals instead of familiar fractions.
Conversation
Turn 1 — User
Doubling a recipe gives me 0.6666666666666666 cups.
Turn 2 — Assistant
Quantities are now kept as exact fractions through the scaling arithmetic and only converted for display, snapping to the denominators people actually use in a kitchen.
Two thirds doubled now reads as one and a third rather than a decimal expansion.
Turn 3 — User
What about something that does not divide nicely?
Turn 4 — Assistant
It falls back to the nearest common fraction and marks the value approximate, which is what a written recipe does anyway.
Subjects
- [[Web App]]
- [[Validation]]