Metropoli BBS
VIEWER: eq.c MODE: TEXT (ASCII)
/*Copyright (C) 1992, 1994 by Thomas Glen Smith.  All Rights Reserved.*/
/* eq APL2 V1.0.0 ******************************************************
* Returns an int 1 or 0 depending on whether left is equal to rite.    *
***********************************************************************/
#define INCLUDES 0
#include "includes.h"
int eq(left,rite)
double left,rite;
{
	extern double fuzz;
	double diff;

	diff = (left > rite) ? left-rite : rite-left;
	return(diff <= fuzz);
}
[ RETURN TO DIRECTORY ]