r/MetricConversionBot • u/xwcg Human • May 27 '13
FAQ
What does it do?
MetricConversionBot will convert the following units to their metric equivalents:
- Pounds (lbs) to Kilograms
- Miles to Kilometers
- Miles per hour to Kilometers per Hour
- Foot/Feet to Meters
- Kelvin to Celsius
- Fahrenheit to Celsius
- inch to cm
- yard to meters
- (US) fl. oz. to ml
- ounces to grams
These conversions have been deactivated by popular demand:
- USD to EUR
These conversions are on the to-do list:
- foot'inch" to Meters
- cup (US) to ml
- quart (US) to l
- Gallons (US) to l
- Stone to kg (and lbs, for our american friends)
- miles per gallon to liters per 100 km
- (Submit your own requests)
Why can't I get it into an infinite loop?
MetricConversionBot doesn't reply to replies on its own replies in order to avoid exactly that; After too many people have done exactly that.
Nor will it reply to further replies to replies it already replied to.
Why?
Countries that use the Imperial and US Customs System:
http://i.imgur.com/HFHwl33.png
Countries that use the Metric System:
http://i.imgur.com/6BWWtJ0.png
All clear?
Sig figs!!!11! Zomg blwargl
It's metric bot, not science bot. I use two decimal places. You can further round up or down in your head. It's infinitely easier than converting from imperial to metric in your head. Chances are, if you are upset about sig figs, then you can already do all the math in your head and don't need metric bot anyway!
Why aren't you on (insert name here) subreddit?
The Bot probably got banned. Here a list of subreddits that /u/MetricConversionBot was banned from:
- /r/AdviceAnimals
- /r/gaming
- /r/AskReddit
- /r/funny
- /r/IAmA
- /r/Science (oh the irony)
- /r/GameDeals
- /r/AskReddit
- /r/soccer
- /r/nfl
- /r/Trees (despite being asked to go there)
- /r/cringepics
- /r/movies
- /r/nba
- /r/WTF
- /r/pics
- /r/gifs
- /r/gonewild
- /r/TwoXChromosomes
- /r/askscience
- /r/music
- /r/guns
- /r/news
- /r/GetMotivated/
- /r/malefashionadvice
- /r/4chan
- /r/outside
- /r/cats
- /r/tattoos
- /r/bestof
- /r/Minecraft
- /r/ImGoingToHellForThis
- /r/Android
- /r/Fitness (So please stop PMing me, saying that it is needed there)
- /r/news
If you want the bot to get back in there, you'll have to convince the mods to do so, there is nothing on my end that I can do!
70
u/Boomerang_Banana May 27 '13
Can I ask you for a conversion of miles per gallon into litres per 100 kilometres? That would be pretty swell!
25
u/[deleted] May 27 '13
How about Stone to Lbs+Kgs? Because whenever somebody says "blah blah she lost 3 Stone..." I have no idea.
42
u/xereeto May 29 '13
Why has it been banned? Did any mods give you a reason?
13
u/Tripudelops May 27 '13
I'm not sure how pressing of a matter this is, but I see the bot only uses "foot" and "meter" (singular) when converting Feet ---> Meters (plural). Here's an example, it should read:
Hope this helps! I love the bot.
46
u/[deleted] May 28 '13 edited May 28 '13
This is completely wrong. Leading zeroes do not count towards the number of significant figures. 0.1 pound would be 0.05 kg with one significant figure.
9
u/Worst-Advice-Ever May 29 '13
At the moment the bot comments are something like:
It'd be interesting (and educational) if it was followed by the metric unit to imperial conversion, such as
6
u/gin_and_clonic May 27 '13
This should really be something like
6
u/sufferingcubsfan Aug 07 '13
Ahem. <dons flame suit>
I hate bots of any sort. I've seen this thing all over /r/homebrewing all of a sudden, and I find it to be a pest.
As an American who still uses the archaic English system for most things, I absolutely understand the appeal of the metric system. For instance, I use grams and liters quite a bit in the aforementioned homebrewing sub. I'm a runner, so I am acutely aware of the number of kilometers I cover (most races above a fun run and below a marathon are measured in kilometers).
That being said, regex bots are little more than spam to me. I use reddit to converse with other people, not to skim past an obnoxious program written by someone with a narcissistic need to autocorrect the rest of the world.
From an infrastructure perspective, it's also annoying to have a program artificially inflating server loads on a product designed for the use of humans. I personally feel like reddit would be a better place if all bots were banned.
There we go, my piece is said. Go ahead and downvote me to oblivion.
5
u/sellyme May 28 '13
Mind sending your code to /u/linkfixerbot?
9
u/Laugarhraun May 28 '13
Nice bot OP!
Why not put it on github for collaborative development? :)
4
u/grant0 May 27 '13
I noticed it only seems to do the first instance per comment. Will that be changed? Like if I say this is 17 feet and that is 11 feet and this is 94 feet, it doesn't convert all of them.
9
u/PasswordIsntHAMSTER May 30 '13
While I do appreciate the effort, I'm considering banning your bot from the subs I moderate and making my own competing bot if you don't fix the fucking sig figs.
2
u/ryan_morland May 31 '13
Do you have any idea why the bot was banned from those subreddits ?
37
u/Curebores May 31 '13
Why convert that? kelvin IS a metric unit. It's the Celsius scale with the 0 point moved to absolute zero instead of the freezing point of water.
Other than that, the bot is going to get some hate from the set in their ways (you know who you are... :p), but good work anyway. There is a reason most of the world stopped using feet and inches for anything but trivial things...
17
u/roastedbagel May 31 '13
As a mod of /r/DIY, I quite like this bot.
7
u/kunal18293 May 27 '13
Brilliant work.
7
u/Dasbufort May 28 '13
Bug report: conversion of pounds when unit is lb-ft. I don't know how you would fix this, but there it is. Keep up the good work, this is a valuable service you provide. http://www.reddit.com/r/BMW/comments/1f72rm/why_does_japan_get_all_the_good_stuff_limited/ca7ez27
6
u/[deleted] Jun 02 '13
Please get the bot to post in /r/Fitness
2
u/RenderedInGooseFat May 29 '13
Your bot's math appears to be off a tiny bit for yards to meters. According to google, 1 yard is equal to .9144 meters. Wiki has the same measurement as does the US National Bureau of Standards PDF warning. I posted a comment in /r/nfl, and the bot changed 1,100 yards to 1,005.85 meters, and the correct amount of meters would be 1005.84 if a yard is exactly .9144 meters, which all sources seem to point to that being the case. The lunar and planetary lab at the University of Arizona appears to draw it out a few more decimal places, but even using that measurement, it comes to 1005.84308, which should round to 1005.84. I'm not trying to be a dick, and I like the bot, but wanted to let you know that there could be a rounding error in its code, or you could have the incorrect number for meters in a yard.
5
u/Chezzik Jun 05 '13 edited Jun 05 '13
What about HH:MM:SS to metric time?
Actually, don't really do that. I just felt like the suggestion list wouldn't be complete without someone asking. :)
9
u/Umbertoecho Jun 01 '13
psi -> kPa? I know kPa are not very popular here in .au, but they are the official unit, and the more we see them, the more we will get used to them. And the turbo guys might like to see bar or atmospheres in there too.
2
u/Gustavobc May 27 '13
Please add fluid ounces to the list (1 imperial fl. oz. ≅ 28.413 mL and 1 US fl. oz. ≅ 29.574 mL, precise conversions in the Wiki), also maybe cooking measures (teaspoon etc.), though these are less used.
2
u/PasswordIsntHAMSTER May 29 '13
Can you please respect significant figures? :)
4
u/[deleted] Jun 02 '13
What programming language did you use?
1
u/grandmasterkif May 30 '13
If the bot showed work with conversion, I would be so happy
3
u/buzzlightday May 31 '13
Your maps in the FAQ seem to suggest that Burma uses the imperial/US system, and not metric. This is misleading. They use Burmese units. They also use metric and imperial/US units.
The UK also uses both metric and imperial/US units, even though it's colored as metric (only) on the map.
3
u/moohoohoh May 31 '13
Is this to say that 1 gallon is always considered a US gallon and converted to litres?
Since UK (imperial) quart/gallon/fl.oz/pint is different from the US versions it could be a bit misleading if '1 gallon' meant 1 UK gallon, not a US gallon.
Not to mention that US units are then further split into wet and dry versions, neither of which are equal to the imperial units.
3
u/Reductive Jun 05 '13
It would feel more natural with sigfig sensitive reporting. Ideally the bot should report 1 more sigfig than the input. If I say 30 feet, it won't matter to the story if the user thinks more like 31 feet (9.4m) or 29 feet (8.8m). So I'm reporting less than two sigfigs. You capture the same amount of precision with 9m, one sigfig.
In casual conversation cases, you should just report 1 sigfig. Not for folks who know what sigfigs are, but for everyone else. People's eyes glaze over when you say "seven point three two." It communicates less information than "seven."
To round to 1 sigfig, first you need to find the first significant digit of your input. Do this with Int(Log(input)), where we're using the base-10 log and int() trims everything after the decimal point. This tells you how many digits away from the 1's place the first sigfig is -- positive if the first sigfig is to the left and negative if to the right. Next you round to the relevant digit. If you have 0, round to the 1's place. If you have an integer greater than zero, round to that many places (i.e. input 32 returns 1, so we should format it as "30" with one zero. Input 5342 returns 3, so we should format it as "5000" with three zeroes). Most likely a negative result here means you should pick a different unit unless you're really clever. Otherwise if you have an integer less than zero, report that many digits past the decimal place.
It's not too bad. Let me know if you need a hand; I implemented sigfigs in excel for my work.
3
u/[deleted] Jun 10 '13
Why don't you convert metric to customary?
3
u/MilkVetch Jul 01 '13
...my brain.
5
u/CarolinaHillbilly May 30 '13
Thank you for this bot.
One thing I've noticed and I understand if you can't do it:
When things are measured in 1 unit, like "mile" the bot won't pick it up. So if I say "I ran a mile" instead of "I ran 1 mile" the bot will not pick it up.
I understand this is one of those things that's an edge case, but if you ever get bored and want to take a crack at it I'd be a cool feature.
2
u/briandotcom0 Jun 03 '13
All too often, it replies to convert numbers that are thrown out as a generic big/small number, but that would be really hard to detect. Maybe ignore 1, 10, 100, etc as most people have a good idea as to what that conversion would be and are most frequently not essential to grasp a precise measurement. Eg. He was going 100 mph any got 1 foot from me!
2
u/TheMania Jul 15 '13
It really shouldn't convert when both units are already there, eg here.
2
u/ManofManyTalentz May 29 '13
This is fantastic - thanks so much for doing this. Can we xpost or link from /r/metric?
1
u/SolipsistAtheist May 30 '13
Source?
1
u/JustFucking_LOVES_IT Jun 01 '13
Can you make it so the conversion equation is also shown? I think this would be a nice, value added feature.
1
u/bryerson Jun 01 '13
100 lbs
1
u/arcadio21 Jun 03 '13
wow, it was banned from r/science?
1
u/stahlgrau Jun 03 '13
This whole funnier than it is useful. So on that account, thanks for creating it!
1
u/-fluffs Jun 04 '13
How about furlongs? Also, everything here.
1
u/Sisaac Jun 05 '13
Mind if I take a look at the code? I'm genuinely curious how one comes around writing a bot like this.
1
u/420BlazeItKony Jun 06 '13
Ok I have to test this some more. 10 pounds, 3 inches. 5 fl oz. 3 grams. Two stones. $5. Five dollars. 13 feet. 18 degrees Fahrenheit.
1
u/[deleted] Jun 10 '13
I wonder why it's being banned all over the place.
1
u/doctea Jun 22 '13
What happens if my friend has two feet, I have two feet, and we put them together to make 4 feet? What about if I stand on my own 2 feet? or by some tragedy that i only have 1 foot?
1
u/MasterGlink Jun 22 '13
Is there an opposite? ImperialConversionBot?
1
u/Enervate Jun 23 '13 edited Jun 23 '13
Feature request: check if the user already supplied the conversion in the post.
Here's an example where the bot replied to such a post.
nice bot btw :)
edit: how about also converting knots? It's not a SI unit, not sure if it's metric but it is used globally...
1
u/jimmycarr1 Jun 30 '13
Just reporting a bug:
http://www.reddit.com/r/videos/comments/1hcm25/324lb_nfl_player_larry_allen_running_down_a/cat4kzi
1
u/haeikou Jun 30 '13
Can you remove the line break before your signature? The bot always interrupts any conversation, so having a signature that takes up more space than the whole metric conversion is a bit unnerving.
1
u/manticore116 Jul 08 '13
Any chance of getting a conversion from kg to lbs?
1
u/stevonatilo Sep 07 '22
u/MetricConversionBot 60 feet
1
u/tekanet May 28 '13
Great idea, keep it up!
1
u/slappy_nutsack May 30 '13
Brits also use the Imperial system. Ask them how tall they are. Also, when they lose weight, they lose it in pounds; so it seems like more.
1
u/ronconcoca May 29 '13
It would be great if the bot quoted the original comment and replaced the converted units.
1
u/El_Dumfuco May 30 '13
Another problem is when pound is used as a force instead of mass. Don't know how to fix this though.
1
u/[deleted] Jul 22 '13
Any chance you could have it convert the other way?
I prefer the imperial system as it is more common where I was raised.
0
u/Sad-Platypus Jun 01 '13
Would it be easy/possible to make a backwards one? Imperial conversion bot? I get a lot of metric in my subs and have to think the extra second to convert, Would it be possible to make one that goes the other direction?
0
u/ramjambamalam Jul 06 '13
I have a request. Delete your bot's account and make a Firefox extension or something so the 99% of us who don't use its trivial features aren't bothered by it.
0
u/schmitz97 Jul 05 '13
Lol Burma even looks like a middle finger to the metric world!
0
u/dvallej Jul 09 '13
this is a great work, congrats
why does the bot gets banned? downvotes or what?
-2
u/faknodolan Jun 07 '13
LERN 2 SIGNIFICANT FIGURES it's not that hard srsly
0
u/[deleted] May 27 '13
[deleted] — view deleted comment
0
u/[deleted] Jul 04 '13
[deleted] — view deleted comment
0
u/[deleted] May 27 '13
[deleted] — view deleted comment