Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-8014

insufficient precision when evaluating calculated item and trigger expressions

    XMLWordPrintable

    Details

      Description

      The following expression is evaluated incorrectly, yielding "false": 9*(1/9)=1.

      The reason it happens is due to expression rewriting in function evaluate(). There 1/9 is evaluated first and the result is inserted into the original expression with 6 digits after the decimal point: 9*0.111111=1. This is further evaluated as 0.999999=1, which is false.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            asaveljevs Aleksandrs Saveljevs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: