[concurrency-interest] Double as a key in TreeMap

Pavel Rappo pavel.rappo at gmail.com
Thu May 31 16:07:08 EDT 2012


Hi George,

how about you try to write to the double-interest at cs.oswego.edu mailing list?

On 31 May 2012, at 21:01, George Kovoor wrote:

> Hello,
> Could anyone please advise if using Double as a key in TreeMap is
> safe, safe in the sense will it result in consistent output.
> I am worried about the floating point precision, that might result in
> key misses , is my understanding correct. Is using Double recommend in
> Java
> 
> Any feedback is very much appreciated
> 
> Thanks
> George
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest



More information about the Concurrency-interest mailing list