MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / to_f64

Function to_f64

nodedb-array/src/query/elementwise.rs:100–106  ·  view source on GitHub ↗
(v: &CellValue)

Source from the content-addressed store, hash-verified

98}
99
100fn to_f64(v: &CellValue) -> Option<f64> {
101 match v {
102 CellValue::Int64(x) => Some(*x as f64),
103 CellValue::Float64(x) => Some(*x),
104 _ => None,
105 }
106}
107
108/// Hashable, totally-ordered key for a coordinate tuple.
109#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]

Callers 2

fold_castFunction · 0.85
applyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected