Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Table of Pascal data types indicating the range of values possible, example value and storage space in bytes?

Please could someone help me find a table that has all the Pascal data types indicating the range of possible values, example value and storage space in bytes

1 Answer

Relevance
  • 10 years ago
    Favorite Answer

    Hi,

    If you have access to the Pascal Compiler, pressing F1 should display the help. If you search the help (normally by typing letters) it should give you the information you need.

    Shortint 128..127 = 1 byte (signed)

    Integer -32768..32767 = 2 bytes (signed)

    Longint -2147483648..2147483647 = 4 bytes (signed)

    Byte 0..255 = 1 byte (unsigned)

    Word 0.65535 = 2 bytes (unsigned)

    Char 0..255 as character = 1 byte (unsigned)

    Boolean true/false = 1 byte (unsigned)

    WordBool true/false = 2 bytes (unsigned)

    LongBool true/false = 4 bytes (unsigned)

    ByteBool true/false = 1 byte (unsigned)

    String 'Any text string' = 1..255 bytes (unsigned)

    Real 2.9e-39..1.7e38 6 bytes (signed)

    Single 1.5e-45..3.4e38 4 bytes (signed)

    Double 5.0e-324..1.7e308 8 bytes (signed)

    Extended 3.4e-4932..1.1e4932 10 bytes (signed)

    Comp -9.2e18..9.2e18 8 bytes (signed)

    Mystic

Still have questions? Get your answers by asking now.