Skip to main content

format_dimension

Function format_dimension 

Source
pub fn format_dimension(
    value: f64,
    decimals: usize,
    tolerance: &ToleranceBlock,
    is_reference: bool,
    prefix: &str,
    suffix: &str,
) -> String
Expand description

The dimension text: prefix ( / R / "") + the nominal (+ the tolerance block) + suffix (° / ""); a reference dimension is parenthesized and shows no tolerance.