Algosim documentation: IsNumber

IsNumber

Tests if an object is a number.

Syntax

Description

IsNumber(X) returns true iff X is a number. Typewise, this includes integers, rational numbers, real numbers, and complex numbers.

Examples

IsNumber(π)
true
IsNumber(IdentityMatrix(1))
false
IsNumber("[not] a particularly long conversation.")
false
IsNumber(i^i)
true

See also