Skip to main content

percent

Function percent 

Source
pub fn percent(value: Option<&Value>, max: Option<&Value>) -> String
Expand description

$percent’s arithmetic, shared with the core percent function: the share of max as “N%”, clamped to 0..100, two decimals.