IBU calculation rounding issues when using grams

Discussion in 'Calculator Support Forum' started by Brewer #209986, Mar 12, 2019.

Tags:
  1. Brewer #209986

    Brewer #209986 New Member

    Joined:
    Dec 15, 2018
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    There seems to be an issue when adding hops to a recipe in the recipe builder and using grams as the unit. It looks like there's some rounding issue as incrementing the number of grams only seems to update the IBU for that addition (and the whole recipe) after a few grams rather than linearly. On the other hand, using ounces doesn't have this issue and you can even do 0.01oz increments and see this reflected in the estimated IBU for the addition.

    Steps to reproduce:

    * Open the recipe builder.
    * Add some malt so there's some gravity in the recipe.
    * Add a hop (any will do, use Magnum as an example) and use grams as the unit.
    * Use something like 10 grams and notice the IBUs for that addition.
    * Increment the number to 11 grams and notice the IBU calculation does not change. Keep incrementing and you'll notice that the IBU makes a large jump to a new value.
    * Change the scale to oz and use low numbers like 0.01, 0.02, etc, and notice that the IBU calculations do change.
     
    AHarper likes this.
  2. Yooper

    Yooper Administrator
    Staff Member

    Joined:
    Nov 16, 2013
    Messages:
    1,296
    Likes Received:
    718
    Trophy Points:
    113
    Location:
    Upper Michigan
    This has been fixed- please let us know if you have any further issues. Thank you!
     
  3. Brewer #209986

    Brewer #209986 New Member

    Joined:
    Dec 15, 2018
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Wow, that was quick. Thanks!
     

Share This Page

arrow_white