Home | History | Annotate | Download | only in big

Lines Matching defs:Float

5 // This file implements the Bits type used for testing Float operations
105 // round returns the Float value corresponding to x after rounding x
107 func (x Bits) round(prec uint, mode RoundingMode) *Float {
122 return x.Float()
146 f := z.Float() // rounded to zero
153 f.Add(f, Bits{int(r) + 1}.Float())
158 // Float returns the *Float z of the smallest possible precision such that
160 // they are added: Bits{0, 1, 0}.Float() == 2**0 + 2**1 + 2**0 = 4.
161 func (bits Bits) Float() *Float {
164 return new(Float)
188 // create corresponding float
189 z := new(Float).SetInt(x) // normalized
219 f := test.bits.Float()