diff options
| author | Damien George <damien.p.george@gmail.com> | 2018-09-27 15:21:25 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-09-27 15:21:25 +1000 |
| commit | b3eadf3f3d0cfd4c56a519ae289288ee829229a5 (patch) | |
| tree | 20e3c574c23d6a7676b2bca15b8aa03ee52fe5f4 /py/scope.h | |
| parent | 8960a2823800c4b699d319e63b7472b3628d7344 (diff) | |
py/objfloat: Fix abs(-0.0) so it returns 0.0.
Nan and inf (signed and unsigned) are also handled correctly by using
signbit (they were also handled correctly with "val<0", but that didn't
handle -0.0 correctly). A test case is added for this behaviour.
Diffstat (limited to 'py/scope.h')
0 files changed, 0 insertions, 0 deletions
