Bits returns the raw bit pattern of the floating point number.
()
| 33 | |
| 34 | // Bits returns the raw bit pattern of the floating point number. |
| 35 | func (f BFloat16) Bits() uint16 { |
| 36 | return uint16(f) |
| 37 | } |
| 38 | |
| 39 | // BFloat16FromFloat32 converts a float32 to a BFloat16. |
| 40 | // Rounds to nearest, ties to even. |