Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for quotToFloat32 (0.12 sec)

  1. src/math/big/rat.go

    	} else {
    		z.a.Lsh(&z.a, uint(-shift))
    	}
    	return z.norm()
    }
    
    // quotToFloat32 returns the non-negative float32 value
    // nearest to the quotient a/b, using round-to-even in
    // halfway cases. It does not mutate its arguments.
    // Preconditions: b is non-zero; a and b have no common factors.
    func quotToFloat32(a, b nat) (f float32, exact bool) {
    	const (
    		// float size in bits
    		Fsize = 32
    
    		// mantissa
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
Back to top