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

Method __int__

Lib/pagebot/toolbox/units.py:616–622  ·  view source on GitHub ↗

Answers self as rounded int, rendered and converted to points. >>> int(pt(20.2)) 20

(self)

Source from the content-addressed store, hash-verified

614 ru = property(_get_ru)
615
616 def __int__(self):
617 """Answers self as rounded int, rendered and converted to points.
618
619 >>> int(pt(20.2))
620 20
621 """
622 return asIntOrFloat(round(self.pt))
623
624 def __float__(self):
625 """Answers self as float, rendered and converted to points.

Callers

nothing calls this directly

Calls 1

asIntOrFloatFunction · 0.90

Tested by

no test coverage detected