Skip to content

Prevent overflow errors #125

@memetican

Description

@memetican

Describe the bug
Basic evaluations such as 123456 * 789456 generates an overflow result, e.g.
-1321167872.

To Reproduce
Evaluate 123456 * 789456

Expected behavior
Should error. Ideally this would be the default behavior, with the ability to override, e.g. ExceptionOnOverflow = false.
That situation might only be useful for e.g. CS studies.

Alternatively, some way to detect that the result has overflowed, so the calling func can handle it accordingly.

Platform (please complete the following information):
All.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions