We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I found some bug of withdrawFloat
my code:
public function withdraw($amount, ?array $desc = null, $confirmed = 0) { $user = User::find(Auth::id()); if ($amount > 0) { return $user->withdrawFloat($amount, $desc, $confirmed); } return $user->balanceFloat; } $this->withdraw(2556.72, [], true);
when I withdraw amount: 2556.72 in db transaction amount is show -255671 // 2556.71 it sholud be 2556.72
Thank you. sorry for my english.
The text was updated successfully, but these errors were encountered:
@anthoz69 Thanks, I'll see in the evening.
Sorry, something went wrong.
fix mantissa #85, v3.1.5
b8dbeff
@anthoz69 now everything works, check it. tag 3.1.5
@anthoz69 https://github.com/bavix/laravel-wallet/blob/master/tests/WalletFloatTest.php#L210 And here’s the unit test
I close the issue. There are questions open new.
@rez1dent3 thank you so much.
rez1dent3
No branches or pull requests
Hi, I found some bug of withdrawFloat
my code:
when I withdraw amount:
2556.72 in db transaction amount is show -255671 // 2556.71 it sholud be 2556.72
Thank you. sorry for my english.
The text was updated successfully, but these errors were encountered: