title: Should I use Decimal type as keys in a Dictionary?
body: <p>I'm about to create a dictionary where each value has a numeric key, obtained by an experimental calculation.</p>
  
  <p>I know that <code>double</code> and any other floating-point type is not well suited to be used as a key, since it's hard to compare two floating-point numbers regarding uniqueness or equality.</p>
  
  <p>Does anyone knows if <code>Decimal</code> is a good candidate with this respect? The alternative would be to convert the double to string with a given precision, but that sounds to me like an inelegant workaround.</p>