You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
587 B

// fround().
// General includes.
#include "cl_sysdep.h"
// Specification.
#include "cln/real.h"
// Implementation.
#include "cl_R.h"
#include "cl_RA.h"
#include "cln/integer.h"
#include "cln/sfloat.h"
#include "cln/ffloat.h"
#include "cln/dfloat.h"
#include "cln/lfloat.h"
namespace cln {
const cl_F fround (const cl_R& x)
{
realcase6(x
, return cl_float(x);
, var const cl_I& a = numerator(x);
var const cl_I& b = denominator(x);
return cl_float(round1(a,b));
, return fround(x);
, return fround(x);
, return fround(x);
, return fround(x);
);
}
} // namespace cln