It’s a data type thing, just like you can’t use “Aardvark” and “Half past noon” for multiplication. Dictionaries need a string for the data type given as a key so that they can leverage hashing of lookup tables (similar to how spellcheck works) for finding the data faster; doubles are stored differently so they won’t work here.