Announcement

Collapse
No announcement yet.

Data types

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Data types

    Can you explain why I get the following?

    x??? = 4294934527
    print HEX$(x???)

    Answer: FFFF7FFF as expected


    x??? = 4294934528
    print HEX$(x???)

    Answer: 8000 Why not FFFF8000

    ------------------

    #2
    What version are you using? I copied & pasted your code and I got FFFF8000. I am using 8.0. Don't know if it's a bug or not.

    Steve

    ------------------

    Comment


      #3
      I'm using PBDOS 3.5

      ------------------

      Comment


        #4
        The help for hex$ in pb3.5 says it only covers -2,147,483,648 to 2,147,483,647; ie
        long interger range. When I try your code I get err 6 overflow at print Hex$(x???)
        KS
        added:
        You will get the overflow condition if you have error checking turned on in options.
        KS
        ------------------


        [This message has been edited by keith shelton (edited August 04, 2005).]

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎