Home > Back-end >  A question about C language data types
A question about C language data types

Time:02-06

Pray god help solve this picture. What is the output, trouble says process

CodePudding user response:

Knock over the code to run not to know

CodePudding user response:

These are foundation of the foundation, carefully look at the intent clearly, floating point number cannot use is equal to the judge, abs (a - b) & lt;=0.0000001, such as the first to determine whether equal, should not write * f1 f2==, I should write abs (f1 * f2 - I) & lt;=0.0000001, specific baidu floating point comparison
  • Related