Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Commit

Permalink
fix LSKLongToDecimal failing because of different decimal formats for…
Browse files Browse the repository at this point in the history
… different cultures
  • Loading branch information
ByronAP committed Jun 15, 2016
1 parent f9b68e7 commit 0423d77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LiskAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

using System;
using System.Collections.Generic;
using System.Globalization;
using System.Net;
using System.Net.Http;
using System.Text;
Expand Down Expand Up @@ -1088,7 +1089,7 @@ public static decimal LSKLongToDecimal(string value)
cstr = sstr + "." + istr.Substring(0, 8);
else
cstr = sstr + "." + istr;
return decimal.Parse(cstr);
return decimal.Parse(cstr, CultureInfo.InvariantCulture);
}

/// <summary>
Expand Down

0 comments on commit 0423d77

Please sign in to comment.