is there an easy way to control the precision for float values? for
example, i have this in my template:
<input type=text value="{{ p }}" />
where float p = 0.1234123413 but i only want to show p with 3 digits
after dot like 0.123. is there a predefined way to control the
precision in the rendering of template instead of having to re-format
the output of the float in my code.
thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---