nextcloud / nextcloud/cookbook
Automatically round ingredient amounts to useful precision
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 641
- Forks
- 113
- Avg merge
- 21h 31m
- Merged PRs (30d)
- 26
Description
Description
Recipe pulled from URL shows long floating point values for ingredients
Reproduction
Steps to reproduce the behavior:
- add recipe from URL: https://www.allrecipes.com/recipe/246195/chef-johns-homemade-eggnog/
Expected behavior
Should either display "0.3 Cups" or "1/3 Cup" for sugar
Actual behavior
Ingredients list shows 0.33333334326744 cups of sugar
Screenshots

Browser
1.46.144 Chromium: 108.0.5359.128 (Official Build) (64-bit)
Versions
Nextcloud server version: 25.0.2
Cookbook version: 0.10.1
Database system: MySQL
Depends on #116
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the recipe import and ingredient-list display paths for the reproduced Allrecipes recipe; the payload does not name specific files or tests. Done means the sugar amount is shown with useful precision, such as 0.3 Cups or 1/3 Cup, rather than 0.33333334326744 cups, while accounting for dependency #116.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100