n
Convert a value to a number; non-numeric becomes 0.
Syntax
Section titled “Syntax”v = n(value)Description
Section titled “Description”Returns the numeric form of value. Numbers pass through; logical TRUE becomes 1, FALSE 0; dates become serial numbers; text and errors become 0. Counterpart of t.
Examples
Section titled “Examples”n(7) % 7n(true) % 1n('text') % 0