typeOf#
Get the type of a variable.
Available in: math cells, REPL.
Syntax#
typeOf(x)
Arguments and behavior#
Returns the internal type name as text, such as string, DenseMatrix or Unit. These are engine type names, not the friendly labels shown on a result chip.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
typeOf(3.5)Interactive examples could not load. You can still copy the expressions.
Expected result: "number".