>Y = 0 >for I = 2 to 6 > C = asc(substr(S,I,1)) > Y = (Y * 10 + bitrshift(C,4)) * 10 + bitand(C,255) >endfor >Y = Y / 100 >if left(S,1) = chr(01) > Y = - Y >endif>There may be a more elegant solution, but that one should work for brute force.
* sample string (should translate to $31.05) S = CHR(02)+CHR(00)+CHR(00)+CHR(00)+CHR(31)+CHR(05) Y = 0 for I = 2 to 6 C = asc(substr(S,I,1)) * just shift the previous accumulated result to the left Y = (Y * 100) + C endfor Y = Y / 100 if left(S,1) = chr(01) Y = - Y ENDIFSo, your message got me thinking.