More Info
KPOP Image Download
  • Top University
  • Top Anime
  • Home Design
  • Top Legend



  1. ENSIKLOPEDIA
  2. Templat:Rnd - Wikipedia bahasa Indonesia, ensiklopedia bebas
Templat:Rnd - Wikipedia bahasa Indonesia, ensiklopedia bebas

Templat:Rnd

  • Afrikaans
  • Ænglisc
  • अंगिका
  • العربية
  • مصرى
  • অসমীয়া
  • अवधी
  • Azərbaycanca
  • تۆرکجه
  • Basa Bali
  • Boarisch
  • Batak Toba
  • Беларуская (тарашкевіца)
  • भोजपुरी
  • ပအိုဝ်ႏဘာႏသာႏ
  • বাংলা
  • Brezhoneg
  • Bosanski
  • Batak Mandailing
  • Basa Ugi
  • Català
  • Chavacano de Zamboanga
  • Cebuano
  • Tsetsêhestâhese
  • Čeština
  • Cymraeg
  • Dansk
  • Zazaki
  • Kadazandusun
  • डोटेली
  • ދިވެހިބަސް
  • Ελληνικά
  • English
  • Eesti
  • Euskara
  • فارسی
  • Føroyskt
  • Français
  • Galego
  • گیلکی
  • गोंयची कोंकणी / Gõychi Konknni
  • Bahasa Hulontalo
  • ગુજરાતી
  • हिन्दी
  • Fiji Hindi
  • Magyar
  • Հայերեն
  • Ilokano
  • Íslenska
  • 日本語
  • Jawa
  • ქართული
  • Taqbaylit
  • Kongo
  • Kumoring
  • Қазақша
  • ភាសាខ្មែរ
  • ಕನ್ನಡ
  • 한국어
  • कॉशुर / کٲشُر
  • Kurdî
  • Кыргызча
  • Lombard
  • ລາວ
  • Lietuvių
  • Latviešu
  • Madhurâ
  • मैथिली
  • Basa Banyumasan
  • Māori
  • Minangkabau
  • Македонски
  • മലയാളം
  • Монгол
  • ꯃꯤꯇꯩ ꯂꯣꯟ
  • ဘာသာမန်
  • मराठी
  • Bahasa Melayu
  • မြန်မာဘာသာ
  • مازِرونی
  • नेपाली
  • नेपाल भाषा
  • Li Niha
  • Norsk bokmål
  • Novial
  • ଓଡ଼ିଆ
  • ਪੰਜਾਬੀ
  • Pangasinan
  • Kapampangan
  • پنجابی
  • پښتو
  • Português
  • Română
  • Русский
  • Русиньскый
  • संस्कृतम्
  • ᱥᱟᱱᱛᱟᱲᱤ
  • Scots
  • سنڌي
  • Srpskohrvatski / српскохрватски
  • တႆး
  • සිංහල
  • Simple English
  • Slovenčina
  • Slovenščina
  • ChiShona
  • Soomaaliga
  • Српски / srpski
  • SiSwati
  • Sunda
  • Svenska
  • Kiswahili
  • தமிழ்
  • ತುಳು
  • ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
  • తెలుగు
  • Тоҷикӣ
  • ไทย
  • Tagalog
  • Setswana
  • Tok Pisin
  • Türkçe
  • Xitsonga
  • Татарча / tatarça
  • ChiTumbuka
  • Українська
  • اردو
  • Oʻzbekcha / ўзбекча
  • Tiếng Việt
  • Хальмг
  • IsiXhosa
  • მარგალური
  • Yorùbá
  • 中文
  • 閩南語 / Bân-lâm-gú
  • 粵語
  • IsiZulu
Sunting pranala
  • Templat
  • Pembicaraan
  • Baca
  • Sunting sumber
  • Lihat riwayat
Perkakas
Tindakan
  • Baca
  • Sunting sumber
  • Lihat riwayat
Umum
  • Pranala balik
  • Perubahan terkait
  • Pranala permanen
  • Informasi halaman
  • Lihat URL pendek
  • Unduh kode QR
Cetak/ekspor
  • Unduh sebagai PDF
  • Versi cetak
Dalam proyek lain
  • Meta-Wiki
  • Wikimedia Outreach
  • Wikispesies
  • Wikimania
  • Butir di Wikidata
Tampilan
Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
(Dialihkan dari Templat:Round)
Dokumentasi templat[lihat] [sunting] [riwayat] [segarkan]

This templates rounds parameter 1 to the number of digits after the point optionally given as parameter 2. If parameter 2 is negative, rounding is to a multiple of 10. If parameter 2 is undefined, numbers with 4 digits before the point are rounded to integers, numbers with 3 digits before the point are rounded to 1 digit after the point, numbers with 2 digits before the point are rounded to 2 digits after the point, and numbers with 1 digit before the point or none are rounded to 3 digits after the point.

In other words, if parameter 2 is undefined, rounding is to 4 significant digits, except that it is not cruder than rounding to an integer and not finer than rounding to three digits after the decimal point.

Examples:

  • "{{round|123.456|4}}" gives "123,4560" [1]
  • "{{round|123.456|3}}" gives "123,456" [2]
  • "{{round|123.456|2}}" gives "123,46" [3]
  • "{{round|123.456|1}}" gives "123,5" [4]
  • "{{round|123.456|0}}" gives "123" [5]
  • "{{round|123.456|-1}}" gives "120" [6]
  • "{{round|123.456|-2}}" gives "100" [7]
  • "{{round|123.456|-3}}" gives "0" [8]
  • "{{round|123456.789}}" → "123.457" [9]
  • "{{round|12345.6789}}" → "12.346" [10]
  • "{{round|1234.56789}}" → "1.235" [11]
  • "{{round|123.456789}}" → "123" [12]
  • "{{round|12.3456789}}" → "12" [13]
  • "{{round|1.23456789}}" → "1" [14]
  • "{{round|.123456789}}" → "0" [15]
  • "{{round|.0123456789}}" → "0" [16]
  • "{{round|.00123456789}}" → "0" [17]

Note that trailing zeros are not shown, so rounding can seem cruder than has actually been applied:

  • "{{round|123.04}}" → "123" [18]
  • "{{round|12.304}}" → "12" [19]
  • "{{round|1.2304}}" → "1" [20]

While this is a limitation of the template (normally there would be trailing zeros to show the precision), there is also the general problem that if a number is an integer with trailing zeros, then the precision is not clear:

  • "{{round|1230.4}}" → "1.230" [21]

See also

[sunting sumber]
  • {{roundup}}
  • {{rounddown}}
  • {{decimals}} – acts like rounding but displays trailing zeros after the decimal point
  • {{precision}} – handles rounding of large numbers, too, like "349,030,293" → "349,030,000", "349,000,000", or "350,000,000"

TemplateData

[sunting sumber]
Ini adalah TemplateData untuk templat ini yang digunakan oleh TemplateWizard, VisualEditor dan alat-alat lainnya. Lihat laporan penggunaan parameter bulanan untuk Template:Rnd.

TemplateData untuk Rnd

This templates rounds a value to the optionally given number of digits after the point.

Parameter templat[Kelola data templat]

ParameterKeteranganJenisStatus
Value1

The value to be rounded

Contoh
3.14159265
Angkawajib diisi
Number of digits2

Number of digits after the point. If negative, rounding is to a multiple of 10. If undefined, numbers with 4 digits before the point are rounded to integers, numbers with 3 digits before the point are rounded to 1 digit after the point, numbers with 2 digits before the point are rounded to 2 digits after the point, and numbers with 1 digit before the point or none are rounded to 3 digits after the point.

Contoh
2
Angkaopsional
Dokumentasi di atas ditransklusikan dari Templat:Rnd/doc. (sunting | riwayat)
Penyunting dapat melakukan uji coba pada halaman bak pasir (buat | cermin) dan kasus uji (buat) templat ini.
Mohon tambahkan kategori pada subhalaman /doc. Subhalaman templat ini.
Diperoleh dari "https://id.wikipedia.org/w/index.php?title=Templat:Rnd&oldid=13868793"
Kategori:
  • Mathematical function templates
Kategori tersembunyi:
  • Templat menggunakan TemplateData

Best Rank
More Recommended Articles