Re: very confused....hex to decimal

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Ah, ok. I asked because I have been working on a bunch of things to iterop
with various CAD / GIS formats. Thought maybe I might have something already
to help you out. However, I have not had a need to work with GeoTIFF's
directly, well not yet. So sadly I do not have anything to help :-|

Gerald

"Lance" <nunya@xxxxxxxxxxxx> wrote in message
news:uZBdgot7FHA.3880@xxxxxxxxxxxxxxxxxxxxxxx
> it's a tif file from a filestream. i'm checking for and detecting the
values of GeoTIFF
> tags.
>
> lance
>
> "Gerald Hernandez" <Cablewizard@spam_remove@Yahoo.com> wrote in message
> news:em7Iadt7FHA.472@xxxxxxxxxxxxxxxxxxxxxxx
> > Out of curiosity, what is your source for this binary value?
> > Any particular reason you are working with the bytes themselves?
> >
> > Gerald
> >
> > "Lance" <nunya@xxxxxxxxxxxx> wrote in message
> > news:OYf7JBt7FHA.2092@xxxxxxxxxxxxxxxxxxxxxxx
> >> you nailed it on all accounts, pretty much.
> >>
> >> by the way, the reason i know it should be 685630.9500000000 is that i
can
> > use a few other
> >> programs (that i didn't write, <g>) that correctly extract the
> > information. it's a UTM x
> >> coordinate. i'm using the other programs to confirm my results.
> >>
> >> lance
> >>
> >> "Dick Grier" <dick_grierNOSPAM@xxxxxxx> wrote in message
> >> news:OtqQQjs7FHA.3880@xxxxxxxxxxxxxxxxxxxxxxx
> >> > Hi,
> >> >
> >> >>>
> >> > 4124EC7DE6666666
> >> > <<
> >> >
> >> > Why do you know that this should be 685630.95000000000?
> >> >
> >> > A Hex number can only be converted directly to an Integer, Long, etc.
> > It does not
> >> > represent a non-integral value -- and is a MUCH larger number (as the
> > conversions that
> >> > you observe indicate) than your "expected" result.
> >> >
> >> > You must be attempting to convert the binary representation of a
> > floating point number
> >> > to a floating point decimal representation -- This cannot be done
with
> > the code that you
> >> > are using, which, naturally, works only with non-floating point
> > (integral) values.
> >> >
> >> > I think that if you Google, you will find code to convert binary FP
> > numbers to decimal
> >> > FP. The "normal" reason for such conversion is that you are
receiving a
> > binary data
> >> > stream from some foreign device, and have to convert it for use in
your
> > program. If
> >> > this isn't so, then a more detailed explanation is required.
> >> >
> >> > Dick
> >> >
> >> > Dick
> >> >
> >> > --
> >> > Richard Grier (Microsoft Visual Basic MVP)
> >> >
> >> > See www.hardandsoftware.net for contact information.
> >> >
> >> > Author of Visual Basic Programmer's Guide to Serial Communications,
4th
> > Edition ISBN
> >> > 1-890422-28-2 (391 pages) published July 2004. See
> > www.mabry.com/vbpgser4 to order.
> >> >
> >> >
> >>
> >>
> >
> >
>
>


.



Relevant Pages

  • Re: McIlvains Taped Conversation With Lemond
    ... She and Lance had a great relationship and Lance offers no reason why she would lie. ... cortisone, testosterone and steroids'. ... It seems really obvious that if this MD asked that question and the patient ...
    (rec.bicycles.racing)
  • Re: McIlvains Taped Conversation With Lemond
    ... So what - Lance did the same thing with Carmichael and his cabal. ... offers no reason why she would lie. ... cortisone, testosterone and steroids'. ...
    (rec.bicycles.racing)
  • Re: Context for TdS debacle
    ... Saugy apparently had many meetings with many ... it is entirely reasonable that Lance was not concerned ... He had no reason to be ... It also confirms what I was saying, that the EPO test has a subjective ...
    (rec.bicycles.racing)
  • Re: Context for TdS debacle
    ... There was no "special" meeting, according to Saugy, the person ... Saugy apparently had many ... reason to be concerned. ... Lance but other people as well. ...
    (rec.bicycles.racing)
  • Re: Context for TdS debacle
    ... There was no "special" meeting, according to Saugy, the person ... Saugy apparently had many ... reason to be concerned. ... Lance but other people as well. ...
    (rec.bicycles.racing)