Skip to main content

fmt_cost

Function fmt_cost 

Source
pub fn fmt_cost(cost: Option<f64>) -> String
Expand description

Format a USD cost for terminal display: "$0.0042", "$0.12", or "N/A".