Scaling Measurement in Swift

PV Watch for Apple Watch displays energy and power generation from PVOutput.org in a watch complication and in a watch app. The Apple Watch has a relatively small display. I needed the app to display power and energy measurements ranging from a few Watts (when the sun has almost set) through to mega Watt hours…