Skip to main content

format_exponent

Function format_exponent 

Source
pub fn format_exponent(exp: Rational) -> String
Expand description

Render a unit/dimension exponent suffix: ^2 for integers, ^(1/2) for rationals (the parenthesized form is re-parseable).