pub fn from_f64(a: f64, out: &mut [f64]) -> usizeExpand description
Writes the expansion of a: empty if a is zero of either sign, [a]
otherwise.
Capacity: 1. Requirement: a is finite; debug builds panic if it is not.
ยงExamples
use implicit_predicates_core::expansion;
let mut out = [0.0; 1];
assert_eq!(expansion::from_f64(2.5, &mut out), 1);
assert_eq!(out, [2.5]);
assert_eq!(expansion::from_f64(-0.0, &mut out), 0);