// User defined Function // // Takes a two digit hexidecimal number and returns a decimal value // // Calls the UDF "hex2dec" // // Written By Sean Hyde-Moyer (Copywrite 1995-2003) // This program is released to the public under the terms of the // GNU GENERAL PUBLIC LICENSE // See http://www.gnu.org/copyleft/gpl.txt // For the full text of the license agreement hexpair2dec: thepair { bighex = strleft(thepair,1); bigdec = hex2dec(bighex); bigdec = (bigdec*16); smallhex = strright(thepair,1); smalldec = hex2dec(smallhex); decpair = bigdec+smalldec; return(decpair); }