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
price = Price.fromstring("1,234,567.890")
it should be
Decimal('1234569.890')
is
Decimal(1234569890)
The text was updated successfully, but these errors were encountered:
#59 (merged but not yet released) could help here.
Sorry, something went wrong.
If you know the decimal separator of the number beforehand, you can use it to work around this:
>>> Price.fromstring("1,234,567.890") Price(amount=Decimal('1234567890'), currency=None) >>> Price.fromstring("1,234,567.890", decimal_separator=".") Price(amount=Decimal('1234567.890'), currency=None)
Though I do think price-parser should be able to extract the number correctly without further arguments for this example input.
No branches or pull requests
price = Price.fromstring("1,234,567.890")
it should be
Decimal('1234569.890')
is
Decimal(1234569890)
The text was updated successfully, but these errors were encountered: