From dd39c19c84cd05219298377046302ffd25af56fe Mon Sep 17 00:00:00 2001 From: mmuffins Date: Wed, 23 May 2018 21:08:29 +0200 Subject: [PATCH] Fixed incorrect price conversion. --- SteamStorefrontAPI/appdetails/Classes/PriceOverview.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SteamStorefrontAPI/appdetails/Classes/PriceOverview.cs b/SteamStorefrontAPI/appdetails/Classes/PriceOverview.cs index d8372ce..5a58aa6 100644 --- a/SteamStorefrontAPI/appdetails/Classes/PriceOverview.cs +++ b/SteamStorefrontAPI/appdetails/Classes/PriceOverview.cs @@ -30,9 +30,8 @@ namespace SteamStorefrontAPI { public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { - long longValue = long.Parse(reader.Value.ToString()); - double convertedValue = longValue / 100.0; - return convertedValue; + var value = reader.Value.ToString(); + return double.Parse(value.Insert(value.Length - 2, ".")); } public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)