Difference between revisions of "Template:Deg2DMS/testcases"
imported>Jonesey95 (rm examples) |
imported>Jonesey95 (precision) |
||
| Line 20: | Line 20: | ||
{{Test case|_showcode=yes|105.38}} | {{Test case|_showcode=yes|105.38}} | ||
| + | |||
| + | ==Precision parameter== | ||
| + | {{Test case|_showcode=yes|266.416837|p=4}} | ||
==Rounding examples== | ==Rounding examples== | ||
Latest revision as of 15:00, 18 November 2020
| This is the template test cases page for the sandbox of Template:Deg2DMS. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
{{Deg2DMS|30.2000}}
{{Deg2DMS}}
30° 12′ 0″
{{Deg2DMS/sandbox}}
30° 12′ 0″
{{Deg2DMS|30.2000|p=0}}
{{Deg2DMS}}
30° 12′ 0″
{{Deg2DMS/sandbox}}
30° 12′ 0″
{{Deg2DMS|30.2000|p=1}}
{{Deg2DMS}}
30° 12′ 0″
{{Deg2DMS/sandbox}}
30° 12′ 0″
{{Deg2DMS|30.2|p=5}}
{{Deg2DMS}}
30° 12′ 0″
{{Deg2DMS/sandbox}}
30° 12′ 0″
{{Deg2DMS|30.21}}
{{Deg2DMS}}
30° 12′ 36″
{{Deg2DMS/sandbox}}
30° 12′ 36″
{{Deg2DMS|30.3}}
{{Deg2DMS}}
30° 18′ 0″
{{Deg2DMS/sandbox}}
30° 18′ 0″
{{Deg2DMS|30.4}}
{{Deg2DMS}}
30° 24′ 0″
{{Deg2DMS/sandbox}}
30° 24′ 0″
{{Deg2DMS|30.5}}
{{Deg2DMS}}
30° 30′ 0″
{{Deg2DMS/sandbox}}
30° 30′ 0″
{{Deg2DMS|105.38}}
{{Deg2DMS}}
105° 22′ 48″
{{Deg2DMS/sandbox}}
105° 22′ 48″
Precision parameter
{{Deg2DMS|266.416837|p=4}}
{{Deg2DMS}}
266° 25′ 0.6132″
{{Deg2DMS/sandbox}}
266° 25′ 0.6132″
Rounding examples
11 12 12 12 12 12 12 11 11, (desired minutes=12; round=14 wins)
60, -0, -0, -0, -0, -0, -0, -0, 60, 60, 60, 60, (desired seconds=0; round=14 wins)
22 24 22 22 22 22 22 22 22 22, (desired minutes=22; round>1 wins)
59 60 59 59 59 59 59 59 59 59 59 59, (desired minutes=59; round>1 wins)