Jump to content

Template talk:Convert

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Help talk:Convert)

... in conception
... and in reality

Different orders of magnitude in a range?

[edit]

I just came across the need to convert "between 500 million and 1 billion pounds." Is there an elegant way to do this, or am I stuck with "0.5 billion" or "1000 million"? See Hydrogen cyanide#Production and synthesis. ~ฅ(ↀωↀ=)neko-channyan 21:38, 17 June 2024 (UTC)[reply]

The article currently has plain text: "between 500 million and 1 billion pounds (between 230,000 and 450,000 t)". Convert can't handle that kind of operation. You would have to muck around with:
  • {{convert|500|e6lb|t|disp=number}} → 230,000
  • {{convert|1|e9lb|t|disp=out}} → 450,000 t
Johnuniq (talk) 23:26, 17 June 2024 (UTC)[reply]

Angular Units

[edit]

Why are there no conversions for units of angular measurement?

Degrees (deg), radians (rad), milliradians (mrad), mils (mil—which exist in NATO, Soviet, and Polish streck variants), gradians/gons (grad/gon), grade/slope (%), gradient (run for every 1 unit of rise), ratio (rise/run), turns (tr/pla), (compass) points/winds (pt/wind), arcminutes/minutes of arc/minutes of angle (arcmin/'/moa), arcseconds (arcsec/"), hour angles, binary radians/binary degrees (brad), quadrants, sextants, octants are just a few of the common ones that should be included, and there are several other historical and parochial units of angular measurement as well.

Hermes Thrice Great (talk) 05:38, 2 July 2024 (UTC)[reply]

For the record, here are previous discussions. It's not clear to me what useful conversions would actually be needed.
Johnuniq (talk) 05:58, 2 July 2024 (UTC)[reply]

Linear feature density

[edit]

At Transport in Switzerland#Railways I've found a need to convert 122 km/1000 km2 into imperial (probably something like miles per 100 or 1000 sqmi). Is this something convert can handled? In the article I've gone with separate conversions to come up with 76 mi per 390 sq mi which is not ideal. Thryduulf (talk) 16:58, 19 July 2024 (UTC)[reply]

Best I can find is {{cvt|0.122|km/km2|mi/sqmi|3}} to display as 0.122 km/km2 (0.196 mi/sq mi)
In theory we should be able to use e3km2 and e3sqmi but these don't work.  Stepho  talk  17:22, 19 July 2024 (UTC)[reply]
Similarly at List of prominent mountains of Switzerland#Distribution there is approximately 1.09 summits per 100 km2 that I've just left as I can't work out anything sensible (I don't think 0.0109/km2 (0.028/sq mi) is particularly useful). Thryduulf (talk) 17:36, 19 July 2024 (UTC)[reply]
Found a really clumsy and dirty technique: {{cvt|122|mi|km0|abbr=values|disp=preunit|km/1000 km<sup>2</sup>|mile/1000 sq mile}} displays as 122 km/1000 km2 (196 mile/1000 sq mile)
This relies on km/km2 converting to mi/sqmi being the same ratio as mi to km - ie km/km2 is same as 1/km and 1/km -> 1/mi being the same ratio as mi -> km. Dirty, very dirty.
Sadly, this trick doesn't work for summits per area.  Stepho  talk  17:57, 19 July 2024 (UTC)[reply]
If there were a heap of these, new units for "1000 km2" and "100 sqmi" and "100 km2" could be defined. I'm not sure how clean the result would be but it might be reasonable. Johnuniq (talk) 03:20, 20 July 2024 (UTC)[reply]