(other Float16)
| 334 | } |
| 335 | |
| 336 | func (f Float16) Less(other Float16) bool { |
| 337 | if f.IsNaN() || other.IsNaN() { |
| 338 | return false |
| 339 | } |
| 340 | // Handle signed zero: -0 is not less than +0 |
| 341 | if f.IsZero() && other.IsZero() { |
| 342 | return false |
| 343 | } |
| 344 | return f.Float32() < other.Float32() |
| 345 | } |
| 346 | |
| 347 | func (f Float16) LessEq(other Float16) bool { |
| 348 | if f.IsNaN() || other.IsNaN() { |