MCPcopy Create free account
hub / github.com/ActiveState/code / div

Method div

recipes/Python/59884_RPN_Stack_class/recipe-59884.py:171–173  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

169 self.pop(2); self.push(newx)
170
171 def div(self):
172 newx = self.gety() / self.getx()
173 self.pop(2); self.push(newx)
174
175 def modulo(self):
176 newx = self.gety() % self.getx()

Callers 2

rendMethod · 0.45
rendMethod · 0.45

Calls 4

getyMethod · 0.95
getxMethod · 0.95
popMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected