Cetin,
Floating point numbers are not stored the same as integers, so no that code won't work.
>Maybe I'm missing something but wouldn't it be something like this :
nValue = 0
>for ix=1 to nBytes
> nValue = nValue + asc(substr(cString,ix))*256^(ix-1)
>endfor
Cetin