🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15786

Re: URGENT ! converting double array into byte array

#15786
From: RiCK
Date: Thu, 29 Apr 1999 00:00
13 lines
942 bytes

Chris Hill wrote:

> Use Double.doubleToLongBits(double) to move each double's bits to a
> long.  Once you have the data in a long, it is easy to mask each byte
> and put it in a byte array.
>

Thanks a lot, but I guess this will take a lot of computing time when dealing
with big double arrays !  :-(

Pierric
Technical Details
Message-ID: <37287A22.29D67A@polymtl.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37273B8E.D6074926@polymtl.ca> <37276b1d.3782238962@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,27c7dd27e6c5812c
X-Google-Attributes: gidf74b3,public
From: RiCK <pierric.permezel@polymtl.ca>
Subject: Re: URGENT ! converting double array into byte array
Date: 1999/04/29
Message-ID: <37287A22.29D67A@polymtl.ca>
X-Deja-AN: 472328971
Content-Transfer-Encoding: 7bit
References: <37273B8E.D6074926@polymtl.ca> <37276b1d.3782238962@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language