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

◆ coerceToLongInteger()

long CoefficientRingZZp::coerceToLongInteger ( const elem & f) const
inline

Definition at line 131 of file coeffrings.hpp.

132 {
133 int n = exp_table[f];
134 if (n > p / 2) n -= p;
135 return n;
136 }

References exp_table, and p.

Referenced by elem_text_out().