Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dylan-sutton-chavez/edge-python
/ trunc
Function
trunc
std/math/src/main/float.rs:230–230 ·
view source on GitHub ↗
(x: f64)
Source
from the content-addressed store, hash-verified
228
229
#[plugin_fn]
230
fn trunc(x: f64) -> Result<i128> { to_int(libm::trunc(x)) }
231
232
// `modf(x) -> (fractional, integral)`, both with the sign of `x`.
233
#[plugin_fn]
Callers
4
contains
Method · 0.85
ftrunc
Function · 0.85
is_integer
Function · 0.85
modf
Function · 0.85
Calls
1
to_int
Function · 0.85
Tested by
no test coverage detected