BREP_render 0.4.0

BREP Rust rendering engine: kernel-fed scene store + wgpu renderer (headless artifact, desktop window, and wasm canvas shells).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Numeric formatting shared by annotations and app panels.

/// Fixed precision without trailing fractional zeros. Preserves signed zero;
/// callers that use the result as an identifier may choose to normalize it.
pub fn compact_decimal(value: f64, precision: usize) -> String {
    let text = format!("{value:.precision$}");
    if precision == 0 {
        return text;
    }
    text.trim_end_matches('0').trim_end_matches('.').to_string()
}

// BREP private tests: b3f46d2fc2bf6451