Skip to content

The "buy" function only accepts integer data #831

@JoelVeloz

Description

@JoelVeloz

Describe the bug
The "buy" function only accepts integer data, how do I buy something with decimal data? , I am applying "WalletFloat" throughout my project, but when I try to create an item, and I want to pay, it does not withdraw the mentioned amount, which is $100, but 0.1, it is clear that it is because I use decimals, but there is no function to decimals? so that you explicitly put the value in decimal "0.1" and not 100, since you would have to apply another function for the conversion.

To Reproduce
Steps to reproduce the behavior:
use the same configuration from the documentation but with interfaces referring to float
image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions