Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
180
def
_is_negative_zero(value: float) -> bool:
181
return
value == 0.0 and math.copysign(1.0, value) < 0.0
182
183
184
def
_same_float_value(left: float, right: float) -> bool:
Callers
1
_float_text
Function · 0.85
Calls
1
copysign
Method · 0.80
Tested by
no test coverage detected