buggy arctan2
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
arctan2(x, y) gives a division by zero runtime error if y=0 (or close to zero)
this is not what the fpatan FPU instruction does, nor is compatible with fpc 1.0.6 and all the c/c++ compilers I tried this on (using atan2(x,y) in math.h). I don't have Delphi, and don't know what's the Delphi's behaviour, but I doubt if it just calls arctan(x/y) :)
Additional information:
Reporter: Nikolay Nikolov
EMail: nickysn1983 at netscape dot net
Mantis conversion info:
- Mantis ID: 4485
- OS: GO32V2
- Version: 1.1.0
- Fixed in version: 1.1.0