No -- that'd only work if the string was an actual decimal character representation of the number (e.g. "3.14"). As I understand it, the string contains a binary representation of a floating-point number (e.g. the byte values 0xC3 0xF5 0x48 0x40).Angel_Mapper said:Just doing a float(String) should work.
Mychaeel said:No -- that'd only work if the string was an actual decimal character representation of the number (e.g. "3.14"). As I understand it, the string contains a binary representation of a floating-point number (e.g. the byte values 0xC3 0xF5 0x48 0x40).
shihchiy: If my assumption is right, you'll probably have to use the Asc(...) function to get the individual byte values of that string and construct the resulting float number yourself. There's no built-in function for that conversion.
Mychaeel said:Wikipedia: IEEE Float should have all information and links you need.