﻿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
27394	"template ""floatformat"" tag throws ValueError for big numbers in Python 3"	mateuszf	Mariusz Felisiak	"I'm porting application from Python 2 to Python 3.
We receive and display floating point values from external system. They may be big values.

Following example works on Python 2 with Django 1.10.2 but throws ""ValueError: valid range for prec is [1, MAX_PREC]"" on Python 3 with the same Django version.


{{{
def my_view(request):
    return render(request, my_template.html', { 'value':-1.323297138040798e+35 })
}}}

{{{
{{ value|floatformat:2 }}
}}}

We have separate custom tag for displaying values in scientific format but how am I supposed to check if value will be printed in scientific format before printing it in template ? This was working automatically in Python 2."	Bug	closed	Template system	1.10	Normal	fixed	floatformat python3		Accepted	1	0	0	0	0	0
