| Tutorial | Classes | Functions | QSA Developer | Language | Library | Qt API Qt Script for Applications

[Prev: Built-in Constants] [Home] [Next: NaN]

Infinity

This is the value of any division by zero, i.e.

    var i = 1/0;

In Qt Script, division by zero does not raise an exception; instead it assigns the Infinity value as the result of the expression. Use isFinite() to test whether a value is finite or not.

[Prev: Built-in Constants] [Home] [Next: NaN]


Copyright © 2001-2002 TrolltechTrademarks
QSA version 1.0.0-beta1