Re: NumberUtils double encoding question

2008-08-28 Thread Yonik Seeley
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. and 48.22 may I assume that the order will

NumberUtils double encoding question

2008-08-28 Thread Jason Rutherglen
Hello, 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. and 48.22 may I assume that the order will be correct? I ask this questions because doubleToRawLongBits is called to