Hongbo Liu
5/8/2011 10:02:00 PM
On May 8, 5:46 pm, Hongbo Liu <liuhon...@sysdynecorp.com> wrote:
> On May 8, 1:26 am, Barry Schwarz <schwa...@dqel.com> wrote:
>
>
>
>
>
>
>
>
>
> > On Sat, 7 May 2011 14:09:02 -0700 (PDT), Hongbo Liu
>
> > <liuhon...@sysdynecorp.com> wrote:
> > >Recently, I am trying to decoding a binary data file. However, can not
> > >decode the float data correctly.
> > >For example:
>
> > >1.0 is 3B000000
> > >3.5 is CF000000
> > >16.0 is B0030000
> > >10.0 is 4E020000
>
> > >I tried the ieee standard and microsoft binary foramt standard , both
> > >are not working.
>
> > >I knew the result (1.0, 3.5,16.0) because I got the print out paper
> > >from the customer. But, I don't know which language the original
> > >program used. The program runs on DOS system.
>
> > Maybe you would like to tell us on what system the data was produced.
> > It would also help to know if the data is stored in a float or a
> > double.
>
> > For what it is worth, your hex does not match my system using an Intel
> > 6600 with Microsoft Visual C.
>
> > --
> > Remove del for email
>
> The system is running MS DOS. It is for sure only 4 bytes for each
> number. can we say it should be float?
>
> Thanks,
Sorry for everybody who is trying to help me out here. I made a
mistake. The number is stored as integer. But when the software print
it out, it actually is divided by another integer before it print out,
so show decimal number on the paper.
Heikki Kallasjoki 's found out the factor of 59 really remind me
something, then i knew i made a mistake.
Thanks again.