Ticket #516 (Fixed)Mon Jun 21 12:45:19 UTC 2021
FPEmulator returns wrong exception for POW in some cases
Reported by: | Sprow (202) | Severity: | Minor |
Part: | RISC OS: Module | Release: | |
Milestone: | Status | Fixed |
Details by Sprow (202):
Spotted while testing VFP equivalent of pow():
Based on ISO9899:1999 F.9.4.4 pow(±0,-ve) should return “divide by zero”, whereas FPEmulator is returning “invalid operation” in some circumstances.
In BASIC64 try
PRINT 0^-0.5
which give invalid operation, whereas
PRINT 1/SQR
gives divide by zero.
Since an exception is raised anyway it’s only a minor digression that it’s not the expected one.
Changelog:
Modified by Sprow (202) Sun, July 04 2021 - 10:13:35 GMT
- Status changed from Open to Fixed
Fixed in FPASC-4_38.