Futurebasic/Language/Reference/on overflows

From Wikibooks, open books for an open world
< Futurebasic | Language | Reference
Jump to: navigation, search

Contents

[edit] ON OVERFLOWS

[edit] Statement

(+) Appearance (+) Standard Console

[edit] Syntax

ON OVERFLOWS{FN userFunction|GOSUB{lineNumber|"stmtLabel"}}

[edit] Description

This statement designates a particular function or subroutine as an overflow handling routine. An overflow handling routine is called in response to any math operation involving a division by zero, or any floating-point math operation that results in a number larger than FB can handle. If you don't designate any overflow handling routine, FB will attempt to continue evaluating the expression, but the resulting number is unpredictable.

[edit] See Also

Appendix C: Data Types and Data Representation

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects
Print/export