Use float.fromhex instead of eval.

eval is dangerous.