MCPcopy Create free account
hub / github.com/PageBot/PageBot / _get_mm

Method _get_mm

Lib/pagebot/toolbox/units.py:1507–1515  ·  view source on GitHub ↗

Answers the rendered value in mm. >>> u = fr(2, base=mm(10)) >>> u, u.mm, mm(u) (2fr, 5, 5mm)

(self)

Source from the content-addressed store, hash-verified

1505 pt = property(_get_pt)
1506
1507 def _get_mm(self):
1508 """Answers the rendered value in mm.
1509
1510 >>> u = fr(2, base=mm(10))
1511 >>> u, u.mm, mm(u)
1512 (2fr, 5, 5mm)
1513 """
1514 # Renders value and casts it to mm.
1515 return asIntOrFloat(mm(self.ru).rv)
1516 mm = property(_get_mm)
1517
1518 def _get_p(self):

Callers

nothing calls this directly

Calls 2

asIntOrFloatFunction · 0.90
mmFunction · 0.85

Tested by

no test coverage detected