Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-10136

Incorrect code in PLAYAREA FUNCTIONMACRO example.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.2
    • Fix Version/s: 4.2.0
    • Component/s: EclWatch
    • Labels:
      None

      Description

      The example FUNCTIONMACRO in the PLAYAREA, its calculation of 'Population Pct' is wrong.

      Currently:

      {'Population Pct',(INTEGER)(((c2-c1)/c2)* 100.0)}

      ],
      Should be:

      {'Population Pct',(INTEGER)(c1/c2 * 100.0)}

      ],

        Attachments

          Activity

            People

            • Assignee:
              gordonsmith Gordon Smith
              Reporter:
              allan Allan Francis Wrobel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: