Everyone knows that the sqrt function from math.h / cmath in C / C ++ - returns the square root of its argument. Of course, he must do this with some error, because not every number can be stored accurately. But I'm sure the result has a certain accuracy? For example, "is this the best approximation of the square root that can be represented in a floating-point type, used by or , if you calculate the square of the result, will it be as close as possible to the original argument using the floating-point type given by?
Is there anything about this in the C / C ++ standard?
yeputons
source share