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.
- Previous article:Thai Princesses (Symbols of Beauty)
- Next article:What kind of building does a pagoda belong to
- Related articles
- Introduction of eighteen martial arts in Longxing
- How is WeChat applet profitable? What are the profit models of applet development?
- How to use fairy tales to educate young children in kindergarten
- What are the specialties of Panyu?
- What's the difference between traditional commerce and e-commerce?
- Han embroidery tradition
- 20 18 What activities are there in Guangzhou Haizhu Wetland Park during the Dragon Boat Festival?
- What is the key object of risk management control?
- What sculpture does Shoushan Stone Carving belong to?
- Electronic media communication includes