C Tutorial/math.h/isgreaterequal


Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179

Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/cppe.ru/www/includes/parser/Preprocessor_DOM.php on line 803

Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179

Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Материал из C\C++ эксперт
Перейти к: навигация, поиск

int isgreaterequal(a, b): Returns nonzero if a is greater than or equal to b.

#include <stdio.h>
#include <math.h>
int main(void)
{
  printf("isgreaterequal(1.0, 2.0) %d\n", isgreaterequal(1.0, 2.0));
  printf("isgreaterequal(1.0, 1.0) %d\n", isgreaterequal(1.0, 1.0));
  printf("isgreaterequal(2.0, 1.0) %d\n", isgreaterequal(2.0, 1.0));
  return 0;
}
isgreaterequal(1.0, 2.0) 0
isgreaterequal(1.0, 1.0) 1
isgreaterequal(2.0, 1.0) 1