Pi display fix

This commit is contained in:
Gaby Azzopardi 2021-01-15 10:24:35 +01:00
parent ae3aff1616
commit 69f4ae4698

View file

@ -135,7 +135,7 @@ def non_zero_percentage (percentage: int) -> str:
if percentage < 0.01:
return "<0.01%"
else:
return "{:0.0f}%".format(percentage)
return "{:0.2f}%".format(percentage)
def manufacture_alternative_scenarios(form: FormData) -> typing.Dict[str, models.ExposureModel]:
scenarios = {}