(left: float, right: float)
| 182 | |
| 183 | |
| 184 | def _same_float_value(left: float, right: float) -> bool: |
| 185 | if math.isnan(left) or math.isnan(right): |
| 186 | return False |
| 187 | if left == 0.0 and right == 0.0: |
| 188 | return math.copysign(1.0, left) == math.copysign(1.0, right) |
| 189 | return left == right |
| 190 | |
| 191 | |
| 192 | def _to_float32(value: float) -> float: |
no test coverage detected