﻿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
28730	Large integer literals lose precision in templates	Fraser Nevett	nobody	"While looking at #28721, I realised that there is loss of precision on large integer literals:

{{{
#!python
>>> from django.template import Template, Context
>>> Template('{{ 999999999999999999999999999 }}').render(Context())
u'1000000000000000013287555072'
}}}

This happens because the code tries to first convert literal values to a **float** and then from the **float** to an **int**, which is a lossy operation."	Bug	closed	Template system	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
