Template talk:Convert

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Frequently Asked Questions (FAQ)
Q: When using {{convert}} why does the answer not seem right sometimes?
A: This template takes into account the precision of the supplied value and generally rounds the output to the same level of precision. If you need to change from the default output precision, see Help:Convert.
Q: What are all the possible units (kg, lb, m, cm, ft, in, °C, °F, km, mi, nmi, mph, km/h, and so on)?
A: See: Help:Convert units.
For more, see the FAQ.

Hiccup with long tons to kilograms[edit]

I've discovered a problem with the conversion of long tons to kilograms. The following options give different results:

  • {{convert|11|LT|kg|abbr=on}} converts to 11 long tons (11,000 kg) instead of 11,200 kg

Half of 11LT, or 5½ LT, however, result in:

  • {{convert|5|LT|10|lcwt|kg|abbr=on}} converts to 5 long tons 10 cwt (5,600 kg)
  • {{convert|5.5|LT|kg|abbr=on}} converts to 5.5 long tons (5,600 kg)
  • {{convert|5+1/2|LT|kg|abbr=on}} converts to 5 12 long tons (5,600 kg) - André Kritzinger (talk) 18:13, 6 January 2016 (UTC)
This is due to the different default precision of conversion and is perfectly correct and reasonable. "11" and "5.5" have two significant figures, so the conversion results in two significant figures, "11,000" and "5,600" respectively. Exactly the same will happen with other conversions. Note that the following converts as it should, since the source has three significant figures: {{convert|11.0|LT|kg|abbr=on}} → 11.0 long tons (11,200 kg). Peter coxhead (talk) 18:53, 6 January 2016 (UTC)
Ah, got it. Fixed by adding "|sigfig=3". - André Kritzinger (talk) 20:04, 6 January 2016 (UTC)

Forumshopping[edit]

Looks like forumshopping started at Jimbo's talkpage [1], re deleted parsing templates. -DePiep (talk) 05:40, 12 January 2016 (UTC)

comma vs slash[edit]

Is there a way to make {{convert|528|,|560|km|mi|abbr=on}} display a slash instead of a comma? Thanks.  Stepho  talk  01:43, 31 January 2016 (UTC)

That's:
{{convert|528|,|560|km|mi|abbr=on}} → 528, 560 km (328, 348 mi)
What would "528/560 km" mean? -DePiep (talk) 01:54, 31 January 2016 (UTC)
It's for a table where a particular column has 2 figures for distance traveled. See Tesla Model S#Specifications. Technically, I could split the columns into two but since most of the rows are common, I'd like to keep it as a single column. The original text used 'convert' for the single entries but plain text like '528/560 km (328/348 mi)' for the double entries. I had to change the slashes to commas in order to use 'convert' for the double entries (see the previous day in the article's history).  Stepho  talk  02:35, 31 January 2016 (UTC)
No, sorry there is no slash for a range. If the comma is no good, you could consider a dash; perhaps put an en dash in the heading to match: AWD (P85D–P90D).
  • {{convert|480|-|509|km|mi|abbr=on}} → 480–509 km (298–316 mi)
We use dash to mean "to", but it might work there? Whatever is done, there may be too much information in the table for it to be presented in a way that has no defect. Johnuniq (talk) 07:07, 31 January 2016 (UTC)
Yeah, I tried a dash but it looked too much like a range. I guess we can stay with a comma - car brochures often use commas here anyway (at least Japanese car brochures do). Thanks anyway.  Stepho  talk  08:51, 31 January 2016 (UTC)