delorie.com/djgpp/doc/libc/libc_342.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

__fpclassifyf

Syntax

 
#include <math.h>

int __fpclassifyf(float);

Description

Returns the kind of the floating point value supplied. You should use the type generic macro fpclassify (see section fpclassify) instead of this function.

Return Value

FP_INFINITE, FP_NAN, FP_NORMAL, FP_SUBNORMAL or FP_ZERO.

Portability

ANSI/ISO C C99; not C89

Example

 
if( __fpclassifyf(0.0F) != FP_ZERO )
{
  printf("Something is wrong with the implementation!\n");
}


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004