format_percent#

format_percent(ratio: float, floating_point: int = 2, scientific_notation_threshold: int = 4) str[source]#

Format percent for elegant display.

Parameters
ratiofloat

Ratio to be displayed as percent

floating_pointint , default: 2

Number of floating points to display

Returns
——-
str

String of ratio as percent