UNPKG

@technobuddha/library

Version:
15 lines (14 loc) 413 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNegativeZero = void 0; /** * Tests to see if the specified value is negative zero * * @param input The number to test * @returns true is the number is negative zero */ function isNegativeZero(input) { return input === 0 && (1 / input) < 0; } exports.isNegativeZero = isNegativeZero; exports.default = isNegativeZero;