Fixed incorrect price conversion.
This commit is contained in:
parent
6f2eef8792
commit
dd39c19c84
@ -30,9 +30,8 @@ namespace SteamStorefrontAPI
|
|||||||
{
|
{
|
||||||
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
|
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
|
||||||
{
|
{
|
||||||
long longValue = long.Parse(reader.Value.ToString());
|
var value = reader.Value.ToString();
|
||||||
double convertedValue = longValue / 100.0;
|
return double.Parse(value.Insert(value.Length - 2, "."));
|
||||||
return convertedValue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||||
|
Loading…
Reference in New Issue
Block a user