http://qs321.pair.com?node_id=1029998


in reply to Unpack mysql binary column data

right results for smaller numbers

Getting right results till about 255? If so, check the discussion on "endian" in pack. Briefly, look at the < or > modifiers. Integers should be easy to deal with but floats can be problematic.