Skip to main content
=====
Django Template Maths
=====

Django Template Maths is a simple filter for execute maths in template

Quick start
-----------

1. Add "django_template_maths" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = [
...
'django_template_maths',
]

Example usage
-------------

```html
{% load django_template_maths %}

{{ 10|add:5 }} # print 15

{{ 10|sub:5 }} # print 5

{{ 10|div:5 }} # print 2

{{ 10|mul:5 }} # print 50

{{ 10|mod:5 }} # print 0

{{ 10|exp:5 }} # print 100000

{{ 10|flr:5 }} # print 2

{{ 10|sqr }} # 3.1622776601683795

{{ 10|add:5|add_decimal:2 }} # print 15.00

{{ 1000|add:5|add_decimal:2|separator:'comma' }} # print 1,005.00

{{ 1000|add:5|add_decimal:2|separator:'dot' }} # print 1.005,00

{{ 1000|remove_decimal|separator:'dot' }} # print 1.005

{{ 50|percent_of_number:500 }} # print 10,0

```

Metadata

Release files for django-template-maths 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-template-maths 0.2.0
File Size Uploaded Provenance
django-template-maths-0.2.0.tar.gz 3.9 kB Without provenance Details

Release files / django-template-maths-0.2.0.tar.gz

Download URL django-template-maths-0.2.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
19847ca95ec3eb4e01f3511009226293d10f3e08755dfed806038037dc6acbf8
BLAKE2b-256 checksum
How to use checksums
f32cf2b5362d9cd2a3a267f284d1f331d803a964f51c3a3394024916c4a44955
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.10.0 pkginfo/1.2.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.5

Security for django-template-maths 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page