Macaulay2 Engine
Loading...
Searching...
No Matches

◆ sgn()

int mpfr::sgn ( const mpreal & op)
inline

Definition at line 2781 of file mpreal.h.

2782{
2783 // Please note, this is classic signum function which ignores sign of zero.
2784 // Use signbit if you need sign of zero.
2785 return mpfr_sgn(op.mpfr_srcptr());
2786}
::mpfr_srcptr mpfr_srcptr() const
Definition mpreal.h:1767