Metropoli BBS
VIEWER: and.c MODE: TEXT (ASCII)
/*Copyright (C) 1992, 1995 by Thomas Glen Smith.  All Rights Reserved.*/
/* and APL2 V1.0.0 *****************************************************
* Returns 1 or 0 depending on the logical AND of left and rite.        *
***********************************************************************/
#define INCLUDES 0
#include "includes.h"
int and(left,rite)
double left,rite;
{
	extern double fuzz;
	int ileft,irite;

	ileft = (!((left >= -fuzz) & (left <= fuzz)));
	irite = (!((rite >= -fuzz) & (rite <= fuzz)));
	return(ileft & irite);
}
[ RETURN TO DIRECTORY ]