Project

General

Profile

Bug #900

Many math errors generate NaN instead of a proper ERRN, ERR$, etc.

Added by Brian Flanagan almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
AOZ Developers
Target version:
Start date:
06/17/2022
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

For On Error to work properly we need the errors to be available via ERRN, ERR$, etc.
For example:

ASin() and ACos() used with invalid values, or dividing by 0, all should produce errors, but instead they produce NaN!

Print ACos(1.1)
Print ACos(-1.1)
Print ASin(2)
Print ASin(-2)
Print 12/0

Each of these should produce the proper values in ERRN & ERR$ so errors can be handled via On Error, etc.

Also available in: Atom PDF