Converted Floats to doubles. Improved Test checks to handle precision.