This template rounds up a numeric value to a limited number of decimal places.
| This is a documentation subpage for Template:Roundup. It may contain usage information, categories and other content that is not part of the original template page. |
This template rounds up a numeric value to a limited number of decimal places.
{{Roundup|value}}{{Roundup|value|decimals}}| Template | Result | Expected |
|---|---|---|
{{Roundup|3.14159|3}}
|
3.142 | 3.142 |
{{Roundup|0|3}}
|
0 | 0 |
{{Roundup|-0.00031|3}}
|
0 | 0 |
{{Roundup|-3.14159|3}}
|
-3.141 | -3.141 |
{{Roundup|0|0}}
|
0 | 0 |
{{Roundup|-0.9|0}}
|
0 | 0 |
{{Roundup|314159|-3}}
|
315000 | 315000 |
{{Roundup|0|-3}}
|
0 | 0 |
{{Roundup|-514.15|-3}}
|
0 | 0 |
{{Roundup|-514159|-3}}
|
-514000 | -514000 |
{{Roundup|1}}
|
1 | 1 |
{{#expr:ceil value}} rather than {{Roundup|value}} or {{Roundup|value|0}}. This template should only be used to round up to a number of decimal places other than zero.Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.