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));
Morty Proxy This is a proxified and sanitized view of the page, visit original site.