コード例 #1
0
ファイル: number.go プロジェクト: MogeiWang/py
// Remainder returns the remainder of dividing n by obj.  The equivalent Python
// is "n % obj".
//
// Return value: New Reference.
func (n *NumberProtocol) Remainder(obj *Base) (*Base, error) {
	ret := C.PyNumber_Remainder(cnp(n), obj.c())
	return obj2ObjErr(ret)
}
コード例 #2
0
ファイル: number.go プロジェクト: ericsnowcurrently/qur-gopy
// Remainder returns the remainder of dividing n by obj.  The equivalent Python
// is "n % obj".
//
// Return value: New Reference.
func (n *NumberProtocol) Remainder(obj Object) (Object, error) {
	ret := C.PyNumber_Remainder(cnp(n), c(obj))
	return obj2ObjErr(ret)
}