cvs.delorie.com/djgpp/doc/libc/libc_343.html   search  
libc.a reference

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

__fpclassifyld

Syntax

 
#include <math.h>

int __fpclassifyld(long 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, FP_ZERO or FP_UNNORMAL.

Portability

ANSI/ISO C C99; not C89

Example

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


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004