Home > Back-end >  Level 2 C language program design
Level 2 C language program design

Time:10-26

Help me see me where I got the wrong number

CodePudding user response:

Themselves take a closer look at the topic
Asking for is a double type
Your float type
Precision is not enough!

CodePudding user response:

Double f;
Lf the scanf (" % ", & amp; F);
Int 100 + 0.5 v=f *;
F=v/100.0;
Printf (" % lf \ n ", f);

CodePudding user response:

Float only 6 ~ 7 a valid number, 1234.567, number starting from 1, 6 and 7, is the edge of the valid number, behind another also must not
Double 12 ~ 13 to support what you have

CodePudding user response:

Fun
reference 1 floor response:

themselves take a closer look at subjectAsking for is a double type
Your float type
Precision is not enough ah
1234.567 float type enough ah

CodePudding user response:

Fun
reference 3 floor response:
float only 6 ~ 7 a valid number, 1234.567, number starting from 1, 6 and 7, is the edge of the valid number, behind another also must not
Double 12 ~ 13 to support what you have for
I try again

CodePudding user response:

Fun
reference 3 floor response:
float only 6 ~ 7 a valid number, 1234.567, number starting from 1, 6 and 7, is the edge of the valid number, behind another also must not
Double 12 ~ 13 to support what you have for
resolved thank you very much
  • Related