Re: very confused....hex to decimal
- From: "Gerald Hernandez" <Cablewizard@spam_remove@Yahoo.com>
- Date: Mon, 21 Nov 2005 17:21:39 -0700
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.
> >> >
> >> >
> >>
> >>
> >
> >
>
>
.
- References:
- very confused....hex to decimal
- From: Lance
- Re: very confused....hex to decimal
- From: Dick Grier
- Re: very confused....hex to decimal
- From: Lance
- Re: very confused....hex to decimal
- From: Gerald Hernandez
- Re: very confused....hex to decimal
- From: Lance
- very confused....hex to decimal
- Prev by Date: re: Launching EXE in Deployment Project
- Next by Date: Re: threads - how many ?
- Previous by thread: Re: very confused....hex to decimal
- Next by thread: Get CurrentDate into TimeSpan
- Index(es):
Relevant Pages
|