From ab2f2a26243afe5842ab89fc6cad619601b4a333 Mon Sep 17 00:00:00 2001 From: Eva Sebestova Date: Mon, 19 Aug 2024 14:51:44 +0200 Subject: [PATCH] update rounding --- nise/generators/aws/ec2_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nise/generators/aws/ec2_generator.py b/nise/generators/aws/ec2_generator.py index b39788a2..d48cd6dc 100644 --- a/nise/generators/aws/ec2_generator.py +++ b/nise/generators/aws/ec2_generator.py @@ -198,7 +198,7 @@ def _update_data(self, row, start, end, **kwargs): row["pricing/term"] = "OnDemand" row["pricing/unit"] = "Hrs" row["savingsPlan/SavingsPlanEffectiveCost"] = saving - row["savingsPlan/SavingsPlanRate"] = round(float(saving) / float(amount), 5) if saving and amount else saving + row["savingsPlan/SavingsPlanRate"] = round(float(saving) / float(amount), 4) if saving and amount else saving # Overwrite lineItem/LineItemType for items with applied Savings plan if saving is not None: