SYNOPSIS
type = mtd16.tagType(tag)
DESCRIPTION
Calculates the numerical value of tag's type. If tag is not a
number, it is looked up in the table mtd16.lutTag to get its numerical value.
RETURN VALUE
The numerical value of the top four bits of tag.
ERRORS
Raises an error if msgCode could not be converted to a number by looking it up in
mtd16.lutTag.
EXAMPLE
>
print(mtd16.tagType(0xF001))
15
SEE ALSO
#mtd16, mtd16.answerCode, mtd16.fromData, mtd16.fromText, mtd16.isNestedTag, mtd16.lutType, mtd16.new, mtd16.tagCode, mtd16.tagName, mtd16.tagNumber, mtd16:append, mtd16:appendMessageCode, mtd16:contains, mtd16:get, mtd16:getNumber, mtd16:getString, mtd16:isEmpty, mtd16:isValid, mtd16:messageCode, mtd16:nextMessageCode, mtd16:pairs, mtd16:rewind, mtd16:tags, mtd16:toData, mtd16:toText, mtd16:trace, tostring(mtd16)