views:

24

answers:

1

Hi I use db.GeoPtProperty like

{{a.geopt.lat}}

and heuristically found 2 decimals get "good enough" for my requirements. So I try to round off to 2 decimals either with template filter like a django filter or by python code. Can you recommend a how to proceed? Thanks

+2  A: 

The Django template docs seem to indicate that you can round in the template with {{a.geopt.lat|floatformat:2}}

I've never tried it before, give it a shot.

Jason Hall
Good! It works. Thanks
LarsOn