MCPcopy Create free account
hub / github.com/PacktPublishing/Learning-Go-Programming / DivMod

Function DivMod

ch01/testexample/divide.go:10–17  ·  view source on GitHub ↗

A Euclidean division adapted from the Wikipedia entry http://en.wikipedia.org/wiki/Division_algorithm. You also can find other implementations in the Go libraries https://golang.org/src/pkg/math/big/int.go DivMod performs a Eucledan division producing a quotient and remainder. This version only work

(dvdn, dvsr int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestDivideFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestDivideFunction · 0.68