MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / numeric_floor

Function numeric_floor

crates/gitql-std/src/number/mod.rs:177–182  ·  view source on GitHub ↗
(inputs: &[Box<dyn Value>])

Source from the content-addressed store, hash-verified

175}
176
177pub fn numeric_floor(inputs: &[Box<dyn Value>]) -> Box<dyn Value> {
178 let float_value = inputs[0].as_float().unwrap();
179 Box::new(IntValue {
180 value: float_value.floor() as i64,
181 })
182}
183
184pub fn numeric_round(inputs: &[Box<dyn Value>]) -> Box<dyn Value> {
185 let number = inputs[0].as_float().unwrap();

Callers

nothing calls this directly

Calls 1

as_floatMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…