Shared Rust kernels

ported/log10_fn

All modules · quoted at commit 9e1884369a67 of DnaCalc/DnaCalc. Comments are the source's own.

log10_kernel · 7 lines · calc-func/src/ported/log10_fn.rs on GitHub
pub fn log10_kernel(n: f64) -> Result<f64, WorksheetErrorCode> {
    if n <= 0.0 {
        return Err(WorksheetErrorCode::Num);
    }
    // Excel's LOG10 is the x87 `fldlg2` + `fyl2x` fused op; match it bit-exact.
    Ok(crate::ported::excel_numeric::excel_log10(n))
}

Used by 2 functions.