Beispiel #1
0
// FloorDivide returns the floor of dividing n obj obj.
//
// Return value: New Reference.
func (n *NumberProtocol) FloorDivide(obj *Base) (*Base, error) {
	ret := C.PyNumber_FloorDivide(cnp(n), obj.c())
	return obj2ObjErr(ret)
}
Beispiel #2
0
// FloorDivide returns the floor of dividing n obj obj.
//
// Return value: New Reference.
func (n *NumberProtocol) FloorDivide(obj Object) (Object, error) {
	ret := C.PyNumber_FloorDivide(cnp(n), c(obj))
	return obj2ObjErr(ret)
}