Skip to content

Commit

Permalink
Doubles don't need f at the end.
Browse files Browse the repository at this point in the history
  • Loading branch information
zedshaw committed Sep 5, 2011
1 parent 676a334 commit b0ff091
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/ex6.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ int main(int argc, char *argv[])
{
int distance = 100;
float power = 2.345f;
double super_power = 56789.4532f;
double super_power = 56789.4532;
char initial = 'A';
char first_name[] = "Zed";
char last_name[] = "Shaw";
Expand Down
2 changes: 1 addition & 1 deletion code/ex7.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
int main(int argc, char *argv[])
{
int bugs = 100;
double bug_rate = 1.2f;
double bug_rate = 1.2;

printf("You have %d bugs imaginary rate of %f.\n",
bugs, bug_rate);
Expand Down

0 comments on commit b0ff091

Please sign in to comment.