Skip to content

Commit 4ddd8c5

Browse files
committed
Fixed toBTC function
- Fixed bug in toBTC function
1 parent cef6ce8 commit 4ddd8c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BitGoSDK.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(string $accessToken, string $coin = CurrencyCode::BI
5656
* @return float value converted to BTC
5757
*/
5858
public static function toBTC(int $amount) {
59-
return (float) sprintf('%.8f', bcdiv($amount, 100000000, 8));
59+
return sprintf('%.8f', bcdiv($amount, 100000000, 8));
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)