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