File: infinity.c

package info (click to toggle)
pdl 2.005-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,200 kB
  • ctags: 3,301
  • sloc: perl: 14,876; ansic: 7,223; fortran: 3,417; makefile: 54; sh: 16
file content (10 lines) | stat: -rw-r--r-- 164 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
#include "mconf.h"
double infinity(void)
{
#ifdef DBL_INFINITY
  return DBL_INFINITY;
#else
  double a=0;
  return 1./a; /* Expect divide by zero error */
#endif
}