We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7a05c7 commit 7af2eaeCopy full SHA for 7af2eae
1 file changed
src/Solana.Unity.Dex/Math/Percentage.cs
@@ -150,12 +150,12 @@ public static Percentage FromDouble(double dValue)
150
{
151
double dTemp = dValue;
152
long iMultiple = 1;
153
- string strTemp = dValue.ToString();
+ string strTemp = dValue.ToString(System.Globalization.CultureInfo.InvariantCulture);
154
while (strTemp.IndexOf("E") > 0) // if in the form like 12E-9
155
156
dTemp *= 10;
157
iMultiple *= 10;
158
- strTemp = dTemp.ToString();
+ strTemp = dTemp.ToString(System.Globalization.CultureInfo.InvariantCulture);
159
}
160
int i = 0;
161
while (strTemp[i] != '.')
0 commit comments