Examples of %OD

Example:

	GTM>DO INT^%OD
	Octal:14
	GTM>ZWRITE
	%OD=12
	

This example invokes INT^%OD to interactively convert the octal number entered. %OD prompts for an octal number that it converts to a decimal. %OD returns the converted value in the variable %OD.

Example:

	GTM>SET %OD=14
	GTM>DO ^%OD
	GTM>ZWRITE
	%OD=12
	

This example sets the read-write variable %OD to 14 and invokes %OD to convert the number non-interactively. ZWRITE displays the contents of the variables.

Example:

	GTM>WRITE $$FUNC^%OD(14)
	12
	

This example invokes %OD as an extrinsic function with the FUNC label. The argument specifies the number to be converted.