Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Plumer (0.17 sec)

  1. misc/cgo/gmp/pi.go

    )
    
    var (
    	tmp1  = big.NewInt(0)
    	tmp2  = big.NewInt(0)
    	numer = big.NewInt(1)
    	accum = big.NewInt(0)
    	denom = big.NewInt(1)
    	ten   = big.NewInt(10)
    )
    
    func extractDigit() int64 {
    	if big.CmpInt(numer, accum) > 0 {
    		return -1
    	}
    	tmp1.Lsh(numer, 1).Add(tmp1, numer).Add(tmp1, accum)
    	big.DivModInt(tmp1, tmp2, tmp1, denom)
    	tmp2.Add(tmp2, numer)
    	if big.CmpInt(tmp2, denom) >= 0 {
    		return -1
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 10 22:32:35 GMT 2023
    - 1.3K bytes
    - Viewed (0)
Back to top