Crocoblock / jetformbuilder

79 stars 16 forks source link

Rounding Issue with Calculated Field #221

Closed eclipses closed 1 year ago

eclipses commented 1 year ago

Hi,

Since last update I can see lot of decimals in fields that are setup to have zero decimals, you can find an example in the following page

https://www.bakingwiththeory.com/en/calculators/manual-calculator-round-pizza-ingredients-indirect-dough/?pcs=10&weight=280&waste=0&idro=66&pref=30&ptype=Poolish&pidro=100&ytype=Dry&pyeast=0.14&psalt=0&yeast=0&salt=2.5&fat=0&malt=0

Flour Total 1661.7210682492582 g

Before was shown as 1662 g

eclipses commented 1 year ago

Additional info, in the same page Dry yeast Total 0.7 g

Is declared as 2 Decimals but showing only 1 decimal

eclipses commented 1 year ago

The issue is only when opening the page with parameters in the url, if when the page is opened you jsut redigit one of the values in the fields in order to force the refresh, the amounts are calculated correctly

girafffee commented 1 year ago

@eclipses Thank you again. You can download the patched plugin from this repository, or wait for the next release

eclipses commented 1 year ago

@girafffee Thank you, I do not know how to download the patched plugin. Please when is scheduled next release? i's not a blocker but my calculator looks unprofessional with this long list of decimals.

girafffee commented 1 year ago

image

Here's how you can download the plugin from this repository. And the official release will be the day after tomorrow. If no critical errors have been found up to this point.