I got this delphi code Function EntConvertInts ( Const Int2 : SmallInt; Const Int4 : LongInt) : Double; StdCall; Var TheRealArray : Array [1..6] Of Char; TheReal : Real; Begin Move (Int2, TheRealArray[1], 2); Move (Int4, TheRealArray[3], 4); Move (TheRealArray[1], TheReal, 6); Result := TheReal; End Code (markup): And need to get it converted into php. $10 for the first person that can provide a working function Here are some test values Int2 146 Int4 310116352 result should be 150000 but can not guarantee 100% So convert the code send it to me via pm, I will test it and if it works then the first person will get the money.