github.com/rsc/go@v0.0.0-20150416155037-e040fd465409/src/go/exact/go14.go (about) 1 // Copyright 2014 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build go1.4 6 7 package exact 8 9 import "math/big" 10 11 func ratToFloat32(x *big.Rat) (float32, bool) { 12 return x.Float32() 13 }