Skip to content

Instantly share code, notes, and snippets.

View mitjag's full-sized avatar
💭
Computers work in gotos. Loops, procedures and cases are mental masturbation.

Mitja Gomboc mitjag

💭
Computers work in gotos. Loops, procedures and cases are mental masturbation.
View GitHub Profile
@mitjag
mitjag / index.html
Created November 1, 2024 08:28 — forked from hexerei/index.html
Liquid number format with thousands and decimal seperator
<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>
@mitjag
mitjag / index.html
Created November 1, 2024 08:28 — forked from johnteske/index.html
Liquid number format with commas
{% include numberWithCommas.html number=1 %}
{% include numberWithCommas.html number=12 %}
{% include numberWithCommas.html number=123 %}
{% include numberWithCommas.html number=1234 %}
{% include numberWithCommas.html number=12345 %}
{% include numberWithCommas.html number=123456 %}
{% include numberWithCommas.html number=1234567 %}
{% include numberWithCommas.html number=12345678 %}
{% include numberWithCommas.html number=123456789 %}
{% include numberWithCommas.html number=1234567890 %}