rounded_redaction

Function rounded_redaction 

Source
pub fn rounded_redaction(decimals: usize) -> Redaction
Available on crate feature redactions only.
Expand description

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

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