﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16881	db.backends.util.format_number fails with valid inputs	anonymous	nobody	"We see the error ""quantize result has too many digits for current context"" when using a DecimalField with max_digits=7 decimal_places=2 ie the following call fails

format_number(Decimal('914123.22'), 7, 2)

I believe this is due to the statement

context.prec = max_digits

whereas I think it should be

context.prec = max_digits+decimal_places

but I am not sure."	Uncategorized	new	Uncategorized	1.3	Normal				Unreviewed	0	0	0	0	1	0
