hi greg, just checking - did you try both at once? ie DecimalField in your model and |floatformat:2 in your template.
-jake Greg wrote: > Vincent and James, > I tired both of your suggestions and I couldn't get either to work. > > First, still using my prices as FloatFields. I added the following to > my template: {{ a.price|floatformat:2 }}. When I tried this I got the > following error: > > TypeError > float() argument must be a string or a number > > 2) I changed my price fields to Decimal Fields listed below: > > models.DecimalField(max_digits=6, decimal_places=2) > > However, the prices are still displayed without the decimal values for > prices that end with 00. > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---