Àdàkọ:Precision

Lát'ọwọ́ Wikipedia, ìwé ìmọ̀ ọ̀fẹ́
Lọ sí: atọ́ka, àwárí
[àtúnṣe] [túkúrò] Aṣàlàyé àdàkọ

Àwọn àkóónú

[àtúnṣe] Syntax

[àtúnṣe] Examples

[àtúnṣe] Sandbox

A sandbox has been set up so modifications to the template may be tested before being implemented in the template proper:

Template:Infobox Country/sandbox

If possible, please try to view any modifications using a variety of web browsers and on different types of computer (PC, Macintosh, etc). Thank you!

[àtúnṣe] Microformat

The HTML mark up produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. For more information about the use of microformats on Wikipedia, please see the microformat project.

hCard uses HTML classes including:

  • "adr"
  • "county-name"
  • "fn"
  • "label"
  • "locality"
  • "nickname"
  • "note"
  • "org"
  • "vcard"

Please do not rename or remove these classes.


Given a decimal value, return the precision, as an integer of the number of digits past the decimal point. Negative numbers are returned for precision left of the decimal point.

Note that floating point values have a maximum number of digits total, so 1111111111.11111111 is equivalent to 1111111111.1111111 (one less digit after decimal point), so the output of {{precision}} for both of those is 7.

[àtúnṣe] Examples

{{Precision|1111.123456789}} Expression error: Unrecognised punctuation character "[".
{{Precision|1111.12345678}} Expression error: Unrecognised punctuation character "[".
{{Precision|1111.1234567}} Expression error: Unrecognised punctuation character "[".
{{Precision|1111.123456}} 6
{{Precision|1111.12345}} 5
{{Precision|1111111111.12345678}} 5
{{Precision|1111111111.1234567}} 5
{{Precision|1111111111.123456}} 5
{{Precision|1111111111.12345}} 5
{{Precision|1111111111.1234}} 4
{{Precision|1111111111.123}} 3
{{Precision|1111111111.12}} 2
{{Precision|1111111111.1}} 1
{{Precision|1111111111.10}} 2
{{Precision|1111111111.100}} 3
{{Precision|1111111111.1000}} 4
{{Precision|1111111111.10000}} 5
{{Precision|1111111111}} 0
{{Precision|1111111110}} -1
{{Precision|1111111100}} -2
{{Precision|1111111000}} -3
{{Precision|1111110000}} -4
{{Precision|1111100000}} -5
{{Precision|1111000000}} Expression error: Unrecognised punctuation character "[".
{{Precision|1110000000}} Expression error: Unrecognised punctuation character "[".
{{Precision|1100000000}} Expression error: Unrecognised punctuation character "[".

[àtúnṣe] See also

Àwọn irinṣẹ́ àdáni
Àwọn orúkọàyè

Àwọn oriṣiríṣi
Àwọn ìwò
Àwọn ìgbéṣe
Atọ́ka
Ìkópa
Àpótí irinṣẹ
Àwọn èdè míràn