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

Values in properties breakdown for a single recipe are not rounded #3091

Open
zodac opened this issue Apr 1, 2024 · 1 comment
Open

Values in properties breakdown for a single recipe are not rounded #3091

zodac opened this issue Apr 1, 2024 · 1 comment
Labels
frontend issues that affect frontend (Vue/JS) or only django template code

Comments

@zodac
Copy link

zodac commented Apr 1, 2024

Tandoor Version

1.5.15

Setup

Docker / Docker-Compose

Reverse Proxy

Apache2

Other

No response

Bug description

I have added nutritional properties to my ingredients, and have a summary at the end of my recipes. However, these calculates values are not rounded to 2 decimal places (despite my settings for 2 decimal places), and in some cases have floating point issues resulting in very large decimals:
image
image

Perhaps some explicit rounding can be performed on this section for better presentation?

Relevant logs

No response

@vabene1111 vabene1111 added the frontend issues that affect frontend (Vue/JS) or only django template code label Apr 2, 2024
@Manon-ds
Copy link
Contributor

Manon-ds commented Apr 5, 2024

Hey! I'm going to work on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend issues that affect frontend (Vue/JS) or only django template code
Projects
None yet
Development

No branches or pull requests

3 participants