is_finite

Checks whether a float is finite

&reftitle.description; `bool` `is_finite` `float` `num`

Returns whether the given `num` is a finite float.

A finite float is neither `NAN` (`is_nan`), nor infinite (`is_infinite`).

&reftitle.parameters;

`num`

- The &float; to check

&reftitle.returnvalues;

&true; if `num` is none of `NAN`, `INF`, `-INF`, else &false;.

&reftitle.examples;

### `is_finite` example

    <?php
    $float = 1.2345;
    var_dump($float, is_finite($float));

    $nan = sqrt(-1);
    var_dump($nan, is_finite($nan));

    $inf = 1e308 * 2;
    var_dump($inf, is_finite($inf));
    ?>

&example.outputs;

    float(1.2345)
    bool(true)
    float(NAN)
    bool(false)
    float(INF)
    bool(false)

&reftitle.seealso;

- `is_infinite`
- `is_nan`