﻿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
11206	The floatformat template tag doesn't work with a value of 0 and a precision of 7 or higher.	Tai Lee	nobody	"{{{
>>> floatformat(0.123456789, 6)
u'0.123457'
>>> floatformat(0.123456789, 7)
u'0.1234568'
>>> floatformat(0.0, 6)
u'0.000000'
>>> floatformat(0.0, 7)
u'0E-7'
}}}

Looks like the Decimal module (which `floatformat` uses to perform accurate rounding) is causing trouble.

{{{
>>> Decimal('0.123456789').quantize(Decimal('1.000000'))
Decimal(""0.123457"")
>>> Decimal('0.123456789').quantize(Decimal('1.0000000'))
Decimal(""0.1234568"")
>>> Decimal('0.0').quantize(Decimal('1.000000'))
Decimal(""0.000000"")
>>> Decimal('0.0').quantize(Decimal('1.0000000'))
Decimal(""0E-7"")
}}}
"		closed	Template system	dev		fixed	floatformat precision 7 decimal sprintdec2010		Ready for checkin	1	0	0	0	0	0
