Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ isnan
Function
isnan
crates/stdlib/src/math.rs:44–46 ·
view source on GitHub ↗
(x: ArgIntoFloat)
Source
from the content-addressed store, hash-verified
42
43
#[pyfunction]
44
fn isnan(x: ArgIntoFloat) -> bool {
45
pymath::math::isnan(x.into_float())
46
}
47
48
#[derive(FromArgs)]
49
struct IsCloseArgs {
Callers
8
test_truediv
Method · 0.90
assert_equal_float
Function · 0.90
test_float_pow
Method · 0.90
test_nan_from_str
Method · 0.90
test_weird_floats
Method · 0.90
test_list
Method · 0.90
test_dict_values
Method · 0.90
assertFloatsAreIdentical
Method · 0.90
Calls
1
into_float
Method · 0.80
Tested by
8
test_truediv
Method · 0.72
assert_equal_float
Function · 0.72
test_float_pow
Method · 0.72
test_nan_from_str
Method · 0.72
test_weird_floats
Method · 0.72
test_list
Method · 0.72
test_dict_values
Method · 0.72
assertFloatsAreIdentical
Method · 0.72