Files
ladybird/Userland/Libraries/LibJS/Runtime/MathObject.cpp
Idan Horowitz 24ffe91b16 LibJS: Handle negative zero and negative infinity in Math.abs()
As required by the specification:
3. If n is -0, return +0.
4. If n is -∞, return +∞.
2021-06-05 14:56:58 +01:00

15 KiB