On Thu, Aug 28, 2008 at 1:45 PM, Jason Rutherglen
<[EMAIL PROTECTED]> wrote:
> I am interested in using NumberUtils to encode any number into a sortable
> double.  Once encoded will the lexicographic sorting work on any precision?
> If I store 47.44444444 and 48.22 may I assume that the order will be
> correct?  I ask this questions because doubleToRawLongBits is called to
> convert a double into a long first and I am not an expert at bit level math.

Yes, 100% of the bits of the double are preserved.

-Yonik

Reply via email to