// ToFloat32 attempts to cast the Boolean to a Float32.
// The result is not checked for an overflow.
// Use the ToFloat32Checked version of this method if you need to check for
// an overflow.
ToFloat32 attempts to cast the Boolean to a Float32.
The result is not checked for an overflow.
Use the ToFloat32Checked version of this method if you need to check for
an overflow.
// ToFloat32 attempts to cast the Boolean to a Float32 . // The result is not checked for an overflow . // Use the ToFloat32Checked version of this method if you need to check for // an overflow .
func (t Boolean) ToFloat32() Float32 {
	if t {
		return Float32(1)
	}
	return Float32(0)
}
func ( t Boolean ) ToFloat32 ( ) Float32 { if t { return Float32 ( 1 ) } return Float32 ( 0 ) }
ToFloat32 attempts to cast the Boolean to a Float32.
ToFloat32 attempts to cast the Boolean to a Float32 .