Quote Originally Posted by technomage
Why not use FloatToStr or at least look at how FloatToStr is coded (to get an idea on how it's done), in Delphi or Free Pascal. it might give you some pointers.
floattostr converts a float to a string representation of that float.

like:
f: Single = 1.526543;
s: string;

s:= floattostr(f);

then s is: "1.526543"

that is not what i need. i need the resulting string to be 4 bytes long, containing the data from the single.

besides: have you tried figuring out of that code? it looks like egyptian for me

a few lines of assembly, i can read, buti'm not too good at it, to say the least...