HEX$ (n) HEX$ (n, d) {* Applicable only to F-series & M+ PLC models} |
Purpose | To return a string that represents the hexadecimal value of the numeric argument n. If the second format is used then this function will return a string of d number of characters. |
Examples | A$ = HEX$(1234) B$ = HEX$(1234,7) |
Comments: | A$ will contain the string : "4D2" , B$ will contain the string "00004D2". |
See Also | HEXVAL( ), STR$( ), VAL( ) |