Re: Max integer in an 8 byte COMP field?



Graham Hobbs wrote:
Hello,

I can't figure this out.
Am trying to find the largest integer that will fit inside a 'comp'
field of 8 bytes (64 bits).
Below is the compiler output followed by execution results.
I tried with both signed and unsigned COMP fields.


2**64 = 18,446,744,073,709,551,616

Whether you can display it is another question.





.



Relevant Pages

  • Re: Specialized MTB Shoes
    ... > Anyone have an opinion on the '05 Specialized Carbon Comp or Comp ... > MTB shoes -- apart from fit issues. ... > MTB shoe and these seem to fit well and be in my price range. ...
    (rec.bicycles.tech)
  • Max integer in an 8 byte COMP field?
    ... Am trying to find the largest integer that will fit inside a 'comp' ... I tried with both signed and unsigned COMP fields. ... Graham Hobbs ... Compiler (VisualAge Cobol V2.2) output: ...
    (comp.lang.cobol)
  • Re: Cobol convert program Job Request
    ... Howard Brazee wrote: ... Micro Focus S9COMP is two bytes binary ... How do you fit a sign and four digits into two bytes? ...
    (comp.lang.cobol)
  • Re: Cobol convert program Job Request
    ... Micro Focus S9COMP is two bytes binary ... How do you fit a sign and four digits into two bytes? ...
    (comp.lang.cobol)
  • Re: Max integer in an 8 byte COMP field?
    ... It better NOT have any "COMP-5" data if using VisualAge COBOL (as I think the ... 01 rc2 pic s9comp. ... display "PIC 9COMP." ...
    (comp.lang.cobol)