Templat:Abs/doc: Perbedaan antara revisi
Tampilan
Konten dihapus Konten ditambahkan
k bot Menambah: fr:Modèle:Abs, ru:Шаблон:Abs, no:Mal:Abs, tl:Suleras:Abs, sv:Mall:Abs, nl:Sjabloon:Abs, kk:Үлгі:Abs |
k bot Menambah: sl:Predloga:Abs |
||
Baris 41: | Baris 41: | ||
[[no:Mal:Abs]] |
[[no:Mal:Abs]] |
||
[[ru:Шаблон:Abs]] |
[[ru:Шаблон:Abs]] |
||
[[sl:Predloga:Abs]] |
|||
[[sv:Mall:Abs]] |
[[sv:Mall:Abs]] |
||
[[tl:Suleras:Abs]] |
[[tl:Suleras:Abs]] |
Revisi per 10 Mei 2012 20.40
Halaman ini perlu diterjemahkan dari bahasa Inggris ke bahasa Indonesia. |
Usage
This template evaluates its numeric parameter and returns its absolute value. If the parameter is empty or missing, it returns an empty string. The parameter may also be a numeric expression that will be evaluated before testing its sign.
- Syntax:
- {{Abs|value}}
- Examples with a simple number:
- {{Abs|100}} = |100|.
- {{Abs|0.1}} = |0.1|.
- {{Abs|0}} = |0|.
- {{Abs|-0.1}} = |-0.1|.
- {{Abs|-100}} = |-100|.
- Examples where the parameter is evaluated:
- {{Abs|01}} = |01|.
- {{Abs|00}} = |00|.
- {{Abs|0.}} = |0.|.
- {{Abs|0.0}} = |0.0|.
- {{Abs|-0}} = |-0|.
- {{Abs|3-4}} = |3-4|.
- {{Abs|-4*2}} = |-4*2|.
- Examples with an empty (or missing) parameter:
- {{Abs|}} = | · |.
- {{Abs}} = | · |.