Off-by-one error when casting to Decimal with set precision #16027
Labels
A-dtype-decimal
Area: decimal data type
accepted
Ready for implementation
bug
Something isn't working
P-low
Priority: low
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
The decimal number has 25 places (5 before / 20 after the decimal point). Casting to precision 25 should work. Casting to precision 26 does work, however.
This issue does not occur with lower precision numbers:
Expected behavior
No error.
Installed versions
main
The text was updated successfully, but these errors were encountered: