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

INTFORMAT should support UNSIGNED values

    XMLWordPrintable

Details

    • Suggestion
    • Status: Active
    • Minor
    • Resolution: Unresolved
    • 4.2.12, 5.0.10
    • None
    • Code Generator

    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

      johnholt lovettbx

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: