Macaulay2 » Documentation
Packages » Macaulay2Doc » rings » integers modulo a prime » char
next | previous | forward | backward | up | index | toc

char -- get the characteristic of the ring or field

Description

i1 : R = ZZ/10007[x,y];
i2 : char R

o2 = 10007
i3 : R = ZZ[x]/823671827384723894723894723892

o3 = R

o3 : QuotientRing
i4 : char R

o4 = 823671827384723894723894723892

Ways to use char:

  • char(Ring)

For the programmer

The object char is a method function.


The source of this document is in Macaulay2Doc/functions/char-doc.m2:24:0.