Macaulay2 Engine
Loading...
Searching...
No Matches
◆
elem_text_out()
void CoefficientRingZZp::elem_text_out
(
buffer
&
o
,
ElementType
a
,
bool
p_one
=
true
,
bool
p_plus
=
false
,
bool
p_parens
=
false
) const
Definition at line
3
of file
coeffrings.cpp
.
8
{
9
(void) p_parens;
10
long
n =
coerceToLongInteger
(a);
11
if
(n < 0)
12
{
13
o <<
'-'
;
14
n = -n;
15
}
16
else
if
(p_plus)
17
o <<
'+'
;
18
if
(p_one || n != 1) o << n;
19
}
CoefficientRingZZp::coerceToLongInteger
long coerceToLongInteger(const elem &f) const
Definition
coeffrings.hpp:131
References
coerceToLongInteger()
.
CoefficientRingZZp
Generated on
for Macaulay2 Engine by
1.15.0