Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1>Usage Template</h1>
- <h2>With integer to decimal conversion</h2>
- <p>
- {% include numf.html number=12345 %} <!-- output is 12.345,00 --><br />
- {% include numf.html number=12345 decimals=0 %} <!-- output is 12.345 --><br />
- {% include numf.html number=12345 decimals=4 %} <!-- output is 12.345.0000 --><br />
- {% include numf.html number=12345 ds='.' ts=',' %} <!-- output is 12,345.00 --><br />
- </p>
- <h2>Using decimals</h2>
- <p><strong>NOTE! numbers are automatically rounded</strong></p>
- <p>
- {% include numf.html number=12345.6789 %} <!-- output 12.345,68 --><br />
- {% include numf.html number=12345.6789 decimals=0 %} <!-- output 12.346 --><br />
- {% include numf.html number=12345.6789 ds='.' ts=',' %} <!-- output is 12,345.68 --><br />
- </p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement