IsFinite reports whether f is neither NaN nor an infinity.
()
| 265 | |
| 266 | // IsFinite reports whether f is neither NaN nor an infinity. |
| 267 | func (f Float16) IsFinite() bool { |
| 268 | return (f & maskExp) != maskExp |
| 269 | } |
| 270 | |
| 271 | // IsNormal reports whether f is a normal value (not zero, subnormal, infinite, or NaN). |
| 272 | func (f Float16) IsNormal() bool { |
no outgoing calls
no test coverage detected