13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The INTEGER TypeIntegers are whole signed numbers in the range from -32768 to +32767.Integer variables and constants, integer subranges, and expressions thatreturn integer values can be used with the following operations:+ - * / DIV MOD := < > = = ABS SQR PWROFTEN SQRTSIN COS ATAN LOG LN EXPSTR CHR ORD SUCC PRED ODDFor a description of the results of combining integers with each other andwith other data types in arithmetic and relational operations, see Chapter 6.The REAL TypePascal data of the type REAL are signed floating-point numbers. They canrange from plus or minus 1.401298464e-45 to plus or minus3.402823466e38. 0.0 is also a real value. Each real number is stored inmemory as 32 bits. This gives it a precision of about seven significant digits,depending on the actual value. For a full discussion of floating-pointnumbers, see Appendix 3B. For a description of the memory format, seeAppendix 3C.IA Technical Point: Don't confuse the Pascal type REAL with themathematical concept of a real number. The Pascal type REAL onlydesignates a particular way of storing a number.Pascal variables and constants of the type REAL, plus expressions thatreturn values of this type, can be used with the following operations:+ - * / TRUNC ROUND:= < > = = ABS SQR SQRT SIN COS ATAN LOG LN EXPFor a description of the results of combining data of type REAL with eachother and with other data types in arithmetic and relational operations, seeChapter 6.The REAL TypeIII-31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!