C Tutorial/math.h/isgreater
int isgreater(a, b): Returns nonzero if a is greater than b.
<source lang="cpp">#include <stdio.h>
- include <math.h>
int main(void) {
printf("isgreater(1.0, 2.0) %d\n", isgreater(1.0, 2.0)); printf("isgreater(1.0, 1.0) %d\n", isgreater(1.0, 1.0)); printf("isgreater(2.0, 1.0) %d\n", isgreater(2.0, 1.0)); return 0;
}</source>
isgreater(1.0, 2.0) 0 isgreater(1.0, 1.0) 0 isgreater(2.0, 1.0) 1