C basic knowledge point small record

xiaoxiao2021-03-06  94

1. The floating point is the "Black Art" in computer programming. One of the reasons is that there is no ideal way to represent an arbitrary number, which can only be approximately indicating this number. There is an endless implementation between two different numbers, and the computer can only distinguish two different numbers through a limited number of digits. Therefore, comparing whether the floating point number and a value are equal or unequal, it is usually a bad program habit, and it is safe to determine if a floating point is greater than or less than a certain value.

转载请注明原文地址:https://www.9cbs.com/read-126130.html

New Post(0)