Article View: borland.public.jbuilder.java.api
Article #557Re: bitconverter
From: John McGrath TeamB
Date: Fri, 06 Jun 2003 04:29
Date: Fri, 06 Jun 2003 04:29
17 lines
1577 bytes
1577 bytes
On Thu, 5 Jun 2003 17:55:39 -0400, Kevin Dean wrote:
> As for parsing out doubles etc. from it, I'm afraid
> I can't think of any way for doing that.
You can do that by packing the bytes into a long value in the order of
your choosing using shift and masking operators and then converting the
long value to a double using Double.longBitsToDouble().
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.1949e2cadcc6a3f598bfd3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed.freenet.de!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mailReferences:
<3edf86be@newsgroups.borland.com> <3edf9b87$1@newsgroups.borland.com> <3edfa0df@newsgroups.borland.com> <3edfbd47$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,43739daf8911228a X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-06-05 21:36:02 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: bitconverter Date: Fri, 6 Jun 2003 00:29:54 -0400 Message-ID: <MPG.1949e2cadcc6a3f598bfd3@newsgroups.borland.com> References: <3edf86be@newsgroups.borland.com> <3edf9b87$1@newsgroups.borland.com> <3edfa0df@newsgroups.borland.com> <3edfbd47$1@newsgroups.borland.com> X-Newsreader: MicroPlanet Gravity v2.60 NNTP-Posting-Host: 151.197.11.12 X-Trace: newsgroups.borland.com 1054873795 151.197.11.12 (5 Jun 2003 21:29:55 -0700) Lines: 17 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed.freenet.de!newspeer1.nwr.nac.net!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail