Convert from float to double
Switched to numeric limits for infinity and epsilon