Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ isinf
Function
isinf
crates/stdlib/src/math.rs:39–41 ·
view source on GitHub ↗
(x: ArgIntoFloat)
Source
from the content-addressed store, hash-verified
37
38
#[pyfunction]
39
fn isinf(x: ArgIntoFloat) -> bool {
40
pymath::math::isinf(x.into_float())
41
}
42
43
#[pyfunction]
44
fn isnan(x: ArgIntoFloat) -> bool {
Callers
2
_sqrtprod
Function · 0.90
test_inf_from_str
Method · 0.90
Calls
1
into_float
Method · 0.80
Tested by
1
test_inf_from_str
Method · 0.72