MachineNumberQ

MachineNumberQ[expr]

returns True if expr is a machineprecision real or complex number, and returns False otherwise.

Examples

open allclose all

Basic Examples  (1)

Check whether numbers are machine numbers or not:

Scope  (1)

Complex numbers:

Complex numbers are only considered machine numbers if both real and imaginary parts are machine numbers:

Applications  (1)

Solve a differential equation, stopping when out of the range of machine numbers:

Properties & Relations  (1)

Any machine number has precision given as MachinePrecision:

Possible Issues  (1)

Subnormal machine numbers are MachineNumberQ:

However, they effectively have less precision than MachinePrecision and have the same uncertainty as $MinMachineNumber:

Introduced in 1991
 (2.0)