use scirs2_core::numeric::{Float, FromPrimitive};
#[inline(always)]
pub(super) fn const_f64<F: Float + FromPrimitive>(value: f64) -> F {
F::from(value)
.expect(
"Failed to convert constant to target float type - this indicates an incompatible numeric type",
)
}