HF RL Explorer

Filter floatformat drops precision in decimal numbers Description

Filter floatformat drops precision in decimal numbers Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). I discovered that floatformat template filter may drop precision when used for Decimal numbers. MWE: from decimal import Decimal from django import setup from django.conf…

The task

I discovered that floatformat template filter may drop precision when used for Decimal numbers. MWE: from decimal import Decimal from django import setup from django.conf import settings from django.template import Template, Context TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', }, ]…

Part of Lego-X/Lego-RL-SWE-Bench-Verified.