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

It is miscalculating the data from MySQL. #407

Open
sudis opened this issue Aug 25, 2022 · 1 comment
Open

It is miscalculating the data from MySQL. #407

sudis opened this issue Aug 25, 2022 · 1 comment

Comments

@sudis
Copy link

sudis commented Aug 25, 2022

Hi, it is incorrectly reflecting the currency information retrieved from MySQL.

resim

As you can see above, mitcoin is 13.16.

resim

But when we go into operation, it shows as if there are a few more digits.

Heres my function to converting.

    convertMoney: function(money) {
        return currency(money, { symbol: "€", separator: ".", decimal: "," }).format();
    },
    convertChip: function(chip) {
        return currency(chip, { symbol: "∐", separator: ".", decimal: "," }).format();
    },
@sudis
Copy link
Author

sudis commented Aug 25, 2022

I found the solution. I changed the Seperator and Decimal parts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant