JavaScript-1.5 Reference

JS_GetPositiveInfinityValue Function

Summary

Retrieves the numeric representation of infinity.

Syntax

jsval JS_GetPositiveInfinityValue(JSContext *cx);

Description

JS_GetPositiveInfinityValue retrieves the numeric representation of infinity. JS_GetPositiveInfinityValue returns a JS value.

The infinity representation is typically used in JavaScript to represent numbers that are larger than the maximum valid integer or double value.

As a value in mathematical calculations infinite values 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_GetNegativeInfinityValue ]

This page was generated by APIDOC