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

Function _is_negative_zero

python/pyfory/converter.py:180–181  ·  view source on GitHub ↗
(value: float)

Source from the content-addressed store, hash-verified

178
179
180def _is_negative_zero(value: float) -> bool:
181 return value == 0.0 and math.copysign(1.0, value) < 0.0
182
183
184def _same_float_value(left: float, right: float) -> bool:

Callers 1

_float_textFunction · 0.85

Calls 1

copysignMethod · 0.80

Tested by

no test coverage detected