Àdàkọ:Precision

Lát'ọwọ́ Wikipedia, ìwé ìmọ̀ ọ̀fẹ́
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

Syntax[àtúnṣe àmìọ̀rọ̀]

Examples[àtúnṣe àmìọ̀rọ̀]

Sandbox[àtúnṣe àmìọ̀rọ̀]

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!

Microformat[àtúnṣe àmìọ̀rọ̀]

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.

Examples[àtúnṣe àmìọ̀rọ̀]

{{Precision|1111.123456789}} Àsìṣe ìgbéọ̀rọ̀sílẹ̀: Àìdámọ̀ àmì ìdádúró-ọ̀rọ̀ sókí "[".
{{Precision|1111.12345678}} Àsìṣe ìgbéọ̀rọ̀sílẹ̀: Àìdámọ̀ àmì ìdádúró-ọ̀rọ̀ sókí "[".
{{Precision|1111.1234567}} Àsìṣe ìgbéọ̀rọ̀sílẹ̀: Àìdámọ̀ àmì ìdádúró-ọ̀rọ̀ sókí "[".
{{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}} Àsìṣe ìgbéọ̀rọ̀sílẹ̀: Àìdámọ̀ àmì ìdádúró-ọ̀rọ̀ sókí "[".
{{Precision|1110000000}} Àsìṣe ìgbéọ̀rọ̀sílẹ̀: Àìdámọ̀ àmì ìdádúró-ọ̀rọ̀ sókí "[".
{{Precision|1100000000}} Àsìṣe ìgbéọ̀rọ̀sílẹ̀: Àìdámọ̀ àmì ìdádúró-ọ̀rọ̀ sókí "[".

See also[àtúnṣe àmìọ̀rọ̀]