Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
398a8596
Kaydet (Commit)
398a8596
authored
Ara 29, 2016
tarafından
Mads Jensen
Kaydeden (comit)
Tim Graham
Ara 30, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #27652 -- Doc'd that intcomma works with floats.
üst
e3f095b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
humanize.txt
docs/ref/contrib/humanize.txt
+5
-7
No files found.
docs/ref/contrib/humanize.txt
Dosyayı görüntüle @
398a8596
...
@@ -34,11 +34,13 @@ You can pass in either an integer or a string representation of an integer.
...
@@ -34,11 +34,13 @@ You can pass in either an integer or a string representation of an integer.
``intcomma``
``intcomma``
============
============
Converts an integer to a string containing commas every three digits.
Converts an integer or float (or a string representation of either) to a string
containing commas every three digits.
Examples:
Examples:
* ``4500`` becomes ``4,500``.
* ``4500`` becomes ``4,500``.
* ``4500.2`` becomes ``4,500.2``.
* ``45000`` becomes ``45,000``.
* ``45000`` becomes ``45,000``.
* ``450000`` becomes ``450,000``.
* ``450000`` becomes ``450,000``.
* ``4500000`` becomes ``4,500,000``.
* ``4500000`` becomes ``4,500,000``.
...
@@ -49,15 +51,13 @@ e.g. with the ``'de'`` language:
...
@@ -49,15 +51,13 @@ e.g. with the ``'de'`` language:
* ``45000`` becomes ``'45.000'``.
* ``45000`` becomes ``'45.000'``.
* ``450000`` becomes ``'450.000'``.
* ``450000`` becomes ``'450.000'``.
You can pass in either an integer or a string representation of an integer.
.. templatefilter:: intword
.. templatefilter:: intword
``intword``
``intword``
===========
===========
Converts a large integer
to a friendly text representation. Works best for
Converts a large integer
(or a string representation of an integer) to a
numbers over 1 million.
friendly text representation. Works best for
numbers over 1 million.
Examples:
Examples:
...
@@ -74,8 +74,6 @@ e.g. with the ``'de'`` language:
...
@@ -74,8 +74,6 @@ e.g. with the ``'de'`` language:
* ``1200000`` becomes ``'1,2 Million'``.
* ``1200000`` becomes ``'1,2 Million'``.
* ``1200000000`` becomes ``'1,2 Milliarden'``.
* ``1200000000`` becomes ``'1,2 Milliarden'``.
You can pass in either an integer or a string representation of an integer.
.. templatefilter:: naturalday
.. templatefilter:: naturalday
``naturalday``
``naturalday``
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment