// floor1().

// General includes.
#include "cl_sysdep.h"

// Specification.
#include "cln/real.h"


// Implementation.

#include "cl_R.h"
#include "cln/rational.h"

namespace cln {

const cl_I floor1 (const cl_R& x, const cl_R& y)
{
// Methode:
// Beides rationale Zahlen -> floor1(x,y).
// Sonst: floor1(x/y).
	if (rationalp(x))
		if (rationalp(y)) {
			DeclareType(cl_RA,x);
			DeclareType(cl_RA,y);
			return floor1(x,y);
		}
	return floor1(x/y);
}

}  // namespace cln
