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

INTFORMAT should support UNSIGNED values

    Details

    • Type: Suggestion
    • Status: Active
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.2.12, 5.0.10
    • Fix Version/s: None
    • Component/s: Code Generator
    • Labels:

      Description

      INTFORMAT currently treats the argument as a signed INTEGER.

      One should be able to INTFORMAT an UNSIGNED as well.

      Currently, if the UNSIGNED value exceeds the range of an 8-byte signed INTEGER, the result returned from INTFORMAT is negative.

      UNSIGNED8 uNUM2 := 18446744073709551615;
      iNum2 := INTFORMAT(uNum2,20,1);
      output(iNum2,NAMED('iNum2'));

      returns -0000000000000000001

      John Holt Brad Lovett

        Attachments

          Activity

            People

            • Assignee:
              anybody Available for anyone
              Reporter:
              kev77log Kevin Logemann
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: