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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can,t Remove Decimal Precision #721

Open
rzashakeri opened this issue Jul 29, 2023 · 2 comments
Open

Can,t Remove Decimal Precision #721

rzashakeri opened this issue Jul 29, 2023 · 2 comments

Comments

@rzashakeri
Copy link

rzashakeri commented Jul 29, 2023

hi thanks for django-money

i can,t convert $100,000.00 to $100,000

i see #154 and #584 and added CURRENCY_DECIMAL_PLACES = 0 to my settings but not work

my field 馃憞

    salary = MoneyField(
        max_digits=14, decimal_places=0, default_currency="USD", null=True, blank=True
    )
@rzashakeri rzashakeri changed the title can,t remove Decimal Precision From Formatting Can,t remove Decimal Precision From Formatting Jul 29, 2023
@rzashakeri rzashakeri changed the title Can,t remove Decimal Precision From Formatting Can,t Remove Decimal Precision From Formatting Jul 29, 2023
@rzashakeri rzashakeri changed the title Can,t Remove Decimal Precision From Formatting Can,t Remove Decimal Precision Jul 29, 2023
@Irostovsky
Copy link

Same issue. I want to show $100, not $100.00. Before I used decimal_places_display, but it is deprecated in the last version.

@antonagestam
Copy link
Contributor

See py-moneyed docs on formatting: https://py-moneyed.readthedocs.io/en/latest/formatting.html

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

3 participants