JavaScript-1.5 Reference

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

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JS_GetEmptyStringValue | JS_GetNaNValue | JS_GetPositiveInfinityValue ]

This page was generated by APIDOC