from tinytab import fmt_percent
fmt_percent(0.256)'25.6%'
Format a proportion as a percentage.
Usage
x: floatThe proportion to format, where 1 is 100%.
decimals: int = 1 strA proportion of 0.256 is 25.6%:
Use decimals= to change the precision: