Nodejs Utililty Methods Number Negate

List of utility methods to do Number Negate

Description

The list of methods to do Number Negate are organized into topic(s).

Method

negate()
Number.prototype.negate = function ()
    "use strict";
    return -this;
};
(4.24242).negate();
negate()
Number.prototype.negate = function ()
    "use strict";
    return -this;
};
for (var i = 1; i < 1e4; ++i)
    (0x424242).negate();
negate()
Number.prototype.negate = function ()
    "use strict";
    return -this;
};
(0xfffffff * 100000).negate();
negate()
Number.prototype.negate = function ()
    "use strict";
    return -this;
};
noInline(Number.prototype.negate);
for (var i = 0; i < 1e4; ++i)
    (i % 3 === 0 ? -i : i).negate();
for (var i = 0; i < 1e4; ++i)
...