Traditional Culture Encyclopedia - Traditional festivals - What are the defects of pow function? The pow function on the ACM program website seems to be impassable.

What are the defects of pow function? The pow function on the ACM program website seems to be impassable.

you can't even write a function call. Write pow(double a,double k)? , should write pow(a, k)

Type conversion is also bracketed.

It is said that there is an error in such a double-precision thing as pow, and pow(2,2) is probably not 4, but 3 or something like that .19999.999999999993 Because floating-point numbers are represented by IEEE 754 notation, this notation is doomed to have errors.