type
Numeric code identifying the type of a value.
Syntax
Section titled “Syntax”v = type(value)Description
Section titled “Description”Returns: 1 (number), 2 (text), 4 (logical), 16 (error), 64 (array). Used in formulas that need to branch on argument type.
Examples
Section titled “Examples”type(42) % 1type('hello') % 2