Added test function for floating point precision.