Examples of %HD

Example:

	GTM>DO INT^%HD
	Hexadecimal:E
	GTM>ZWRITE
	%HD=14
	

This example invokes %HD in interactive mode with INT^%HD. %HD prompts for a hexadecimal number, then returns the converted number in the variable %HD. ZWRITE displays the contents of the variable.

Example:

	GTM>SET %HD="E" 
	GTM>DO ^%HD
	GTM>ZWRITE
	%HD=14
	

This example sets the read-write variable %HD to "E" and invokes %HD to convert non-interactively the value of %HD to a decimal number. %HD places the converted value into the read-write variable %HD.

Example:

	GTM>WRITE $$FUNC^%HD("E")
	14
	

This example invokes %HD as an extrinsic function with the label FUNC and writes the results.