[Answer]-Get the fractional part of a float number in django template

1๐Ÿ‘

I think your best choice is to create your own filter, or to reduce processing in your templates, calculate the remainder in the view and pass it to the template as a specific field?

Theres a good question here with some methods for the actual extraction of the digits within your filter (if you choose that method).

๐Ÿ‘คsrowland

Leave a comment