Template:Coord/dec2dms/testcases

From Jonesipedia
Jump to navigation Jump to search

<templatestyles src="Module:Message box/ombox.css"></templatestyles>

Testing the subroutines

d

45° should be 45°
73° should be 73°
50° should be 50°
50° should be 50°
0° should be 0°
369° should be 9°

d1

45.5° should be 45.5°
73.0° should be 73.0°
50.0° should be 50.0°
50.2° should be 50.2°
0.0° should be 0.0°
9.0° should be 9.0°

dm

45°29′ should be 45°29′
73°02′ should be 73°02′
50°00′ should be 50°00′
50°12′ should be 50°12′
0°01′ should be 0°01′
9°01′ should be 9°01′

dm1

45°28.9′ should be 45°28.9′
73°02.5′ should be 73°02.5′
50°00.0′ should be 50°00.0′
50°12.0′ should be 50°12.0′
0°00.1′ should be 0°00.1′
9°00.1′ should be 9°00.1′

dms

45°28′55″ should be 45°28′55″
73°02′28″ should be 73°02′28″
50°00′00″ should be 50°00′00″
50°12′00″ should be 50°12′00″
0°00′03″ should be 0°00′03″
9°00′03″ should be 9°00′03″

dms1

45°28′55.2″ should be 45°28′55.2″
73°02′27.6″ should be 73°02′27.6″
49°59′59.6″ should be 49°59′59.6″
50°00′00.0″ should be 50°00′00.0″
50°12′00.0″ should be 50°12′00.0″
0°00′03.2″ should be 0°00′03.2″
0°00′12.0″ should be 0°00′12.0″
9°00′03.2″ should be 9°00′03.2″