Skip to content
New issue

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

I want to transfer fractional value #818

Closed
ritesh8192 opened this issue Dec 26, 2023 · 3 comments · Fixed by #824
Closed

I want to transfer fractional value #818

ritesh8192 opened this issue Dec 26, 2023 · 3 comments · Fixed by #824
Assignees
Labels
docs question Further information is requested

Comments

@ritesh8192
Copy link

I can send it but it's doesn't store and as well calculation of the wallet amount is wrong. can you help me?

@ritesh8192 ritesh8192 added the question Further information is requested label Dec 26, 2023
@rez1dent3
Copy link
Member

Hello. You can do this using the *Float methods.

public function transferFloat(
Wallet $wallet,
float|int|string $amount,
ExtraDtoInterface|array|null $meta = null
): Transfer {

@ritesh8192
Copy link
Author

ritesh8192 commented Dec 26, 2023 via email

@rez1dent3
Copy link
Member

$wallet->transferFloat($to, 100.11);

@rez1dent3 rez1dent3 added the docs label Dec 28, 2023
@rez1dent3 rez1dent3 linked a pull request Dec 29, 2023 that will close this issue
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
docs question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants