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

◆ elem_text_out()

void M2::ARingRRR::elem_text_out ( buffer & o,
const ElementType & a,
bool p_one,
bool p_plus,
bool p_parens ) const

Definition at line 6 of file aring-RRR.cpp.

11{
12 (void) p_parens;
13
14 if (p_plus && mpfr_cmp_si(&ap, 0) > 0)
15 o << "+";
16
17 if (!p_one && mpfr_cmp_si(&ap, -1) == 0)
18 o << "-";
19 else if (p_one || mpfr_cmp_si(&ap, 1) != 0)
20 o << &ap;
21}