According to the specification section 12:
STR: TYPE(ANY: obj) ; returns the runtime type name of obj as a STR - one of INT, FLT, STR, or TNS (extension-defined type names are returned unchanged when extensions are enabled).
However, TYPE MUST (and does) return the runtime type name of obj regardless of obj's type.
According to the specification section 12:
However,
TYPEMUST (and does) return the runtime type name ofobjregardless ofobj's type.