[concurrency-interest] double to long

Nikolai V. Chr. nikolai at ifad.dk
Mon Jul 4 02:52:44 EDT 2005


I am writing a AtomicDouble class.

I would like to know if these two produce the same result:

double initialValue;
a = Double.doubleToLongBits(initialValue);
b = (long) initialValue;

Regards
Nikolai

-- 
Nikolai V. Christensen, Computer Engineer,
Simulation and Training department
IFAD TS A/S, Østre stationsvej 43 2.tv, DK-5000 Odense C
Denmark, EU
Phone: +45 63 11 02 11  Fax: +45 65 93 29 99
WWWeb: http://www.ifad.dk
e-mail: Nikolai.V.Christensen at ifad.dk
--




More information about the Concurrency-interest mailing list