Skip to content

Commit 993e3ee

Browse files
kratzky2Captcha
and
2Captcha
authored
balance invariant culture (#22)
Co-authored-by: 2Captcha <[email protected]>
1 parent c1c47d7 commit 993e3ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TwoCaptcha/TwoCaptcha.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.IO;
4+
using System.Globalization;
45
using System.Threading;
56
using System.Threading.Tasks;
67
using TwoCaptcha.Captcha;
@@ -232,7 +233,7 @@ public async Task<string> GetResult(String id)
232233
public async Task<double> Balance()
233234
{
234235
string response = await Res("getbalance");
235-
return Convert.ToDouble(response);
236+
return double.Parse(response, NumberStyles.Any, CultureInfo.InvariantCulture);
236237
}
237238

238239
/**

0 commit comments

Comments
 (0)