RE: Number to printable sortable string, including floating point numbers and negatives

2008-09-13 Thread Chris Hostetter
: > NumberTools only has methods for longs at the moment, but the same : > doubleToRawLongBits logic from NumberUtils could be usedto apply it to : > doubles as well. : : Ah, no I have never looked at the NumberTools class, simply because I : had no idea it existed. Thanks for the tip! It looks

RE: Number to printable sortable string, including floating point numbers and negatives

2008-09-11 Thread Jimi HullegÄrd
> : Do you have any suggestions on how to solve this in a > "neat" way? And is > > Have you looked at the NumberTools class? > > As i recall it generates strings that are always printable, but as a > result (of using fewer characters) are also always longer then the > corrisponding value from Solr'

Re: Number to printable sortable string, including floating point numbers and negatives

2008-09-11 Thread Chris Hostetter
: Do you have any suggestions on how to solve this in a "neat" way? And is Have you looked at the NumberTools class? As i recall it generates strings that are always printable, but as a result (of using fewer characters) are also always longer then the corrisponding value from Solr's NumberUt

Number to printable sortable string, including floating point numbers and negatives

2008-09-10 Thread Jimi HullegÄrd
Hi, I'm was sure this discussion has come up before, but after looking around alot I haven't found a suitable answer. I have a need to index number fields that can be used for sorting and range queries, however the various solutions that I have seen does all have some kind of downside. First o