PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

1.6.4 rounding bug

  1. Hi

    Have upgraded to 1.6.4 and believe i have found a rounding error on calculation on decimal places.

    http://testing.menupot.com/?gf_page=preview&id=16

    i have threes fields

    sub total
    discount (working off {Sub Total (Price):8.2}*-0.1)
    Total

    If i set the Subtotal to $10, the discount come out at $1.00 correct

    If i set the Subtotal from $6 to $9, the discount come out at $1.00

    If i set the Subtotal from $1 -$5, the discount come out at $0.00

    If i set the Subtotal to $16.00, the discount comes out at $2.00

    Its not calculating the .00 its rounding up or down to a whole number.

    Thanks

    Mark

    Posted 12 years ago on Tuesday May 1, 2012 | Permalink
  2. I have replicated this issue. It is not rounding to two decimal places as it should be, it's rounding to no decimal places.

    The number field has a rounding option to set the number of decimal places, however because the Product Field is calculating a price it should be calculating to 2 decimal places instead of rounding to a whole number.

    We will be releasing an update shortly to address an unrelated JS issue that occurs in certain situations and we will get the Pricing Field calculation corrected so that it is rounding to 2 decimal places as this is currency.

    Watch for this update, it will be Gravity Forms v1.6.4.1.

    UPDATE: Gravity Forms v1.6.4.1 has been released via automatic update and is also available on the Download Gravity Forms page. This resolves the rounding bug when using a Product Field configured as a calculation. It now rounds to 2 decimal places which is the appropriate rounding for currency.

    Posted 12 years ago on Tuesday May 1, 2012 | Permalink

This topic has been resolved and has been closed to new replies.