Actions

Dfmt (macro)

From Zenitel Wiki

Revision as of 14:55, 11 March 2010 by Egil (talk)

%dfmt( , ) : Event_Handler macro for format decimal number to text.


Format: %dfmt(integer,format-char)

  • no space is allowed between ',' and the format-char.
  • The format-char controls the conversion of the integer. format-char the can be one of:
x hex, lower case text
X hex, upper case text
o octal text
c character value (ASCII)

Examples

EDO "conn %dfmt(%1.phy,x) \n"
  • "%dfmt(43,x)" -> "2b"
  • "%dfmt(43,X)" -> "2B"
  • "%dfmt(43,o)" -> "53"
  • "%dfmt(43,c)" -> "+"

Back to Event_Handler#List_of_macros.