[go: up one dir, main page]

rounded_redaction

Function rounded_redaction 

Source
pub fn rounded_redaction(decimals: usize) -> Redaction
Expand description

Creates a redaction that rounds floating point numbers to a given number of decimal places.

settings.add_redaction(".sum", rounded_redaction(2));