Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » Thing » Number » InfiniteNumber » isFinite
next | previous | forward | backward | up | index | toc

# isFinite -- whether a number is finite

- Usage:
    `isFinite x`
- Inputs:
  - x, a number
- Outputs:
  - a Boolean value, whether x is finite, i.e., is not an infinite real number, nor not a number.

## Description

    i1 : sqrt 2.

    o1 = 1.414213562373095

    o1 : RR (of precision 53)

    i2 : isFinite oo

    o2 = true

    i3 : i = 1/0.

    o3 = infinity

    o3 : RR (of precision 53)

    i4 : isFinite oo

    o4 = false

    i5 : i-i

    o5 = NotANumber

    o5 : RR (of precision 53)

    i6 : isFinite oo

    o6 = false

## See also

- isANumber -- whether a number is not not-a-number
- isInfinite -- whether a number is infinite

## Ways to use isFinite:

- `isFinite(Constant)`
- `isFinite(InfiniteNumber)`
- `isFinite(Number)`

## For the programmer

The object isFinite is a method function.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Macaulay2Doc/ov_analytic_functions.m2:479:0.