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.

Underflow,.The underflow exception occurs when the magnitude of a nonzero result isless than 1.1754944 x 10- 38 (2- 126 ). The response to an underflow is to setthe result to 0 and continue.Division by ZerroThe division-by-zero exception occurs in a division operation when thedivisor is 0 and the dividend is a nonzero number (for example, 2/0). Theresponse is to halt the program.Division of 0 by 0 is a special case, covered in the section "InvalidOperation."Inexact ResultThe inexact exception occurs when a result has been rounded or hasoverflowed. The response to an inexact result is to continue.Invalid OperationThis exception arises in a variety of arithmetic operations. Any exceptionother than overflow, underflow, division by zero, and inexact result falls inthe category of invalid operations. Invalid operations are exceptions that donot occur frequently enough to deserve special classification.The following events are invalid operations:o Division of 0 by 0.o SQRT of a value less than 0.o Conversion of a real value to an integer when overflow makes a correctconversion impossible. The integer conversion exception is signaled byTRUNC and ROUND if their arguments exceed the bounds of thepredeclared type INTEGER.The response to any invalid operation is to halt the program.III-316Appendix SB: Floating-Point Numbers

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

Saved successfully!

Ooh no, something went wrong!