* ignored because the step function is generally considered real but
* a numeric may develop a small imaginary part due to rounding errors.
*/
-numeric numeric::step() const
+int numeric::step() const
{ cln::cl_R r = cln::realpart(value);
if(cln::zerop(r))
- return numeric(1,2);
+ return 1;
if(cln::plusp(r))
return 1;
return 0;
const numeric & operator=(double d);
const numeric & operator=(const char *s);
const numeric inverse() const;
- numeric step() const;
+ int step() const;
int csgn() const;
int compare(const numeric &other) const;
bool is_equal(const numeric &other) const;
inline const numeric inverse(const numeric &x)
{ return x.inverse(); }
-inline numeric step(const numeric &x)
+inline int step(const numeric &x)
{ return x.step(); }
inline int csgn(const numeric &x)