• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Km2 mi2

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentationviewedithistorypurge

This template converts a square kilometer value into square miles, and displays both values.

Usage

edit

{{km2 mi2|number|sig figs|allow decimal}}

Example:

  • {{km2 mi2|512}} → 512 (198)
  • {{km2 mi2|512|2}} → 510 (200)
  • {{km2 mi2|512.3|4|yes}} → 512.3 (197.8)

The second argument is the maximum number of significant figures. Values are rounded to the nearest integer unless a value is present in the third argument.

The above documentation is transcluded from Template:Km2 mi2/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Km2_mi2&oldid=1337696883"