Skip to content

Instantly share code, notes, and snippets.

@jarmo
Created October 16, 2010 15:46
Show Gist options
  • Select an option

  • Save jarmo/629928 to your computer and use it in GitHub Desktop.

Select an option

Save jarmo/629928 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
double a = 1.2;
double b = 1.0;
double c = 0.2;
a - b == c ? printf("true") : printf("false");
printf("\n");
a * 10 - b * 10 == c * 10 ? printf("true") : printf("false");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment