Hi all,
I’m working on an app to show the power production over the day from my SolarEdge system.
I’ve got most of it working but I can’t seem to find the right way to format a string to two decimal places. I’ve tried both of the following but they are unsupported.
"%.2f" % 1.52156667
"{:0.2f}".format(1.5215566)
I’m sure the answer is obvious but I’m stuck.
Thanks for any insight!