See degreeLength(Ring)
The source of this document is in /build/macaulay2-71Dnnx/macaulay2-1.26.06+ds/M2/Macaulay2/packages/LocalRings/doc.m2:372:0.