MCPcopy 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]
230fn 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

containsMethod · 0.85
ftruncFunction · 0.85
is_integerFunction · 0.85
modfFunction · 0.85

Calls 1

to_intFunction · 0.85

Tested by

no test coverage detected