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

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

__fpclassifyd

Syntax

 
#include <math.h>

int __fpclassifyd(double);

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( __fpclassifyd(0.0) != FP_ZERO )
{
  printf("Something is wrong with the implementation!\n");
}


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004