Entry: JS_GetNegativeInfinityValue (Function)
Summary: Retrieves the negative infinity representation.
Syntax:
jsval JS_GetNegativeInfinityValue(JSContext *cx);
Description:
JS_GetNegativeInfinityValue retrieves a numeric representation of negative-infinity, given a specific JS context, cx. JS_GetNegativeInfinityValue returns a JS value.
Negative infinity is typically used in JavaScript to represent numbers that are smaller than the minimum valid integer or double value.
As a value in mathematical calculations, negative infinity behaves like infinity. For example, anything multiplied by infinity is infinity, and anything divided by infinity is zero.
See also:
|
|
|