MCPcopy Create free account
hub / github.com/apache/fory / Less

Method Less

go/fory/float16/float16.go:336–345  ·  view source on GitHub ↗
(other Float16)

Source from the content-addressed store, hash-verified

334}
335
336func (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
347func (f Float16) LessEq(other Float16) bool {
348 if f.IsNaN() || other.IsNaN() {

Callers 2

GreaterMethod · 0.80

Calls 3

IsNaNMethod · 0.95
IsZeroMethod · 0.95
Float32Method · 0.95