|
|||
This page has archives. Sections older than 42 days may be automatically archived by Lowercase sigmabot III when more than 2 sections are present. |
Related pages |
---|
|
Bug report: error in converting liters to US fl oz
The tool reports incorrect values:
4.0 litres (140 imp fl oz; 140 US fl oz)
This should be 135 US fl oz.
A conversion from 4 should be less than 4.05:
4.05 litres (143 imp fl oz; 137 US fl oz)
I'm not sure where else to report this. kslays (talk • contribs) 09:36, 7 March 2024 (UTC)
- That is unfortunate but it happens because convert is guessing the number of significant figures in the input value. Convert does a good job most of the time but it fails in situations like this and the only cure is to specify the wanted precision. That is most easily done with a number that specifies the number of fractional digits after rounding, but sigfig and round are also options: see the rounding documentation on the template page and the first question in the FAQ at the top of this page. Johnuniq (talk) 10:29, 7 March 2024 (UTC)
- Too late now, but in retrospect a better design would have been to require specification of sigfigs or something. The guessing / default just causes too many headaches. EEng 22:02, 7 March 2024 (UTC)
Unitless numbers; %, ‰, ppm, ppb, etc.
I'd like to add unitless scales (%, ppm, ppb, etc.). Mostly this would be for thermal expansion coefficients. Sometimes people write "10.5 μin/(in⋅°F)", and I'd like to be able to convert it to
- "18.9 ppm/°C" (preferentially)
- "18.9 × 10−6/°C"
- "18.9 μm/(m⋅°C)".
The latter one is actually pretty straightforward to add, I think. But the 1st two outputs don't seem possible at the moment. From what I can tell, {{convert}}
needs an input unit and an output unit. Unit cancellation doesn't seem to be able to produce (or even consume) unitless values.
How can I specify 'ppm', 'ppb', etc., as unitless scale values (i.e., essentially equal to 10−6, 10−9, ...)? — sbb (talk) 20:13, 24 March 2024 (UTC)
- The trick is to think in terms of what convert does know - in this case it's the /F and /C. The rest is just ornamentation.
{{cvt|10.5|/F|/C||adj=pre|ppm|disp=preunit|ppm}}
→ 10.5 ppm/°F (18.9 ppm/°C){{cvt|10.5|/F|/C||adj=pre|ppm|disp=preunit|× 10<sup>−6</sup>}}
→ 10.5 ppm/°F (18.9 × 10−6/°C)- Not sure how to do the last one. Stepho talk 23:14, 24 March 2024 (UTC)
Cubic kilometres
Just noting that a cubic kilometre is 109 m3, and 1000 m3 would be the volume of a 10-metre cube. So km3 seems a bad abbreviation for a cubic kilometre. (km)3 would be technically correct I suppose, if ugly. A similar issue arises for square km and km2. I'll try to check recommended practice later. I've a nasty feeling that the "technically wrong" versions are accepted, but I still don't like ones which are out by a factor of a thousand or a million when taken literally. It's a matter of whether there's an explicit convention that distinguishes k(m3) from (km)3. Musiconeologist (talk) 14:28, 29 March 2024 (UTC)
- According to International System of Units#Prefixes, the symbol cm3 means (cm)3, not c(m3). Dr Greg talk 15:18, 29 March 2024 (UTC)
- @Dr Greg Thanks. I hadn't quite got that far—I was reading elsewhere about how to copy-edit units in various disciplines.
- I've checked the International Bureau of Weights and Measures reference from that article now, and it reads:
- The grouping formed by a prefix symbol attached to a unit symbol constitutes a new inseparable unit symbol (forming a multiple or sub-multiple of the unit concerned) that can be raised to a positive or negative power and that can be combined with other unit symbols to form compound unit symbols.
- There's then an example which shows the steps in translating cm2 into m2 via (10-2m)2.
- So it's unambiguous. Musiconeologist (talk) 18:32, 29 March 2024 (UTC)
Just...thank you
This template continues to rule. The fact that {{convert|95|liters/minute|USgal/minute|abbr=on|sp=us}} works and does everything I want it to, I'll swear, is the greatest thing ever. As a content creator, I am never not astounded by the array of parameters on this thing. It has never disappointed me yet. So to every coder who has ever laid a hand on this thing, THANK YOU. jengod (talk) 17:14, 13 April 2024 (UTC)
- Well it still doesn't make my morning coffee, so to be honest I'm not all that impressed. EEng 21:19, 13 April 2024 (UTC)
- Heh. (Obviously it would make coffee *and* tea if it we asked it nicely LOL) jengod (talk) 21:57, 13 April 2024 (UTC)
- Just chuck in LD50 as a extra parameter and it'll tell you when you've really over-dosed! Martinevans123 (talk) 22:36, 13 April 2024 (UTC)
- Hey EEng, can you add a coffee maker to the contraption above? Johnuniq (talk) 23:52, 13 April 2024 (UTC)
- Heh. (Obviously it would make coffee *and* tea if it we asked it nicely LOL) jengod (talk) 21:57, 13 April 2024 (UTC)
Template-protected edit request on 16 April 2024
the conversions are not quite correct Haydennnn (talk) 13:30, 16 April 2024 (UTC)
- That's a big help. Thank you for bringing this to our attention. We'll get right on it. EEng 13:33, 16 April 2024 (UTC)
- Yeah, but they're pretty good, aren't they. They'll probably do! At a pinch...? :) Martinevans123 (talk) 13:35, 16 April 2024 (UTC) Don't tell me, it's probably something about leptons and quarks, isn't it...
- This request needs to be much more specific about what exactly is wrong to be implementable. * Pppery * it has begun... 14:35, 16 April 2024 (UTC)
- Ya' think? EEng 14:36, 16 April 2024 (UTC)
- It's probably gonna be about syntax ordering again, isn't it. Martinevans123 (talk) 14:40, 16 April 2024 (UTC)
- Ya' think? EEng 14:36, 16 April 2024 (UTC)
- Please see the first answer in the FAQ at the top of this page. Johnuniq (talk) 01:36, 17 April 2024 (UTC)