I tried to use one %
, and double %%
, both seem to multiply my number to 100 times bigger.
This is what it looks like:
percent_format = workbook.add_format({'num_format': '0.00%'})
result: 9403.00%
percent_format = workbook.add_format({'num_format': '0.00%%'})
result: 9403.00%%
percent_format = workbook.add_format({'num_format': '0.00'})
result: 94.03
, which is what I want, I just need to append a %
on the end.
Any thoughts?
94.03
then simply formatting it as a percent will (correctly) yield9403.00%
. This is because1 == 100%
. – Grivet%
to the way the value appears. This will not in any way alter the underlying datta, it's just a mask that changes the way the cell looks, visually. – Grivet