As some of you know, buried under the About menu at the top of this page is a menu option for “Conversion Util.” Several years ago, I wrote a simple US/English-to-Metric conversion utility. I use it all the time for temperature (since we are the only place on the planet that still uses Fahrenheit) but I’ve been annoyed by the fact that the results weren’t rounded. Since I’m retired and it’s cold outside, 17°f (-8°c) to be precise, I decided to fix that. Actually, what I meant to say, is “to be less precise.”
For those of you that don’t know about this utility, you set the US/English values in an entry field, and the utility generates a formatted string you can copy and paste into your blog post. So, enter 17 and get “17°f (-8°c) “
I had previously expanded the utility to offer conversions for other common units you might use in a blog post. Now, they all are (what I consider to be) appropriately precise:
Fahrenheit to Celsius is in whole degrees – I mean who really cares if its 17.2°f – it’s cold.
Again, enter 17 and get “17°f (-8°c) “
Feet and Inches convert to whole Centimeters or Meters with two digits to the right of the decimal place. Example:
I am 6′ 2″(188cm) or, if you prefer, 6′ 2″(1.88m)
I’m not really sure if you need 2 digits of precision. Maybe some of you metric users can let me know what makes more sense. Please don’t say “make it adjustable” ‘cuz, no.
Distance / Speed converts from whole miles / miles per hour to whole kilometers.
It’s 471 mi (758 km) from Hartford, CT to Pittsburgh, PA
It’s really 471.1 mi, but who cares?
Whole pounds convert to Kilograms with one digit to the right of the decimal place.
I weigh 190 lb (86.2 kg)
The rounded results are more appropriate at lower values, but I don’t think it’s painful to see that I weigh 190 lb (86.2 kg). At this time there is no conversion to Stones (190 lb = 13.6 stone), but I’ll add it if you like.
I am planning to build the Metric to US/English version of this utility. I am also open to suggestions for other utilities that might seem useful for blogging purposes. Let me know in the comments. The utility page is located on my Blogger site, because WordPress does not allow JavaScript in posts. I have changed the comment process over there to allow comments from anyone, but all comments are moderated. So, you don’t need a Blogger account, but you have to wait for me to approve. That’s to keep the scraggly characters away.
This update is part of Linda G. Hill’s January blog prompt series, Just Jot January. Scraggly is today’s prompt, provided by Cheryl at The Bag Lady.

Hi Dan. Stones are important as here in the UK we always get confused when you Americans refer to people’s weight in pounds! I always know my weight in both kilos (the nurse does that) or stones on my home scales!
LikeLiked by 3 people
Thanks for that. Do you round them off or go with 13.6 – I kind of like weighing 13.6 something. Do you only use stones for peoples’ weights? If you were buying a 40 lb bag of sand would you go with 18kg?
LikeLike
We go with stones and pounds not 1/10th of stones so a person may be 13 stone 6 pounds and so on.
LikeLiked by 1 person
Of course you do ;-)
Now, that’s the kind of programming challenge I can get interested in. It looks like ‘%’ is the Modulo operator. Thanks for giving me something to think about.
LikeLike
There is no expression more likely to get a rise from my husband, aka Mr Science, than ‘approximately precise’, It’s the burden I bear :D
LikeLiked by 4 people
OK, OK, it’s 471.1 miles from Hartford to Pittsburgh :-)
LikeLiked by 1 person
Important work… although unless there’s a converter to make my posts more appealing and less ridiculous to readers? I’m not sure I need it.
😉
LikeLiked by 1 person
I think your posts are fine. And speaking of stones…well, rocks, you have that covered!
LikeLiked by 1 person
That’s one cool converter you’ve got going on there. Thanks for sharing the link to it here. I used to be on Blogger and going over there seems nostalgic to me.
LikeLiked by 1 person
Thanks Ally. I started on Blogger. There are days I miss it, especially when WordPress is having one of its tantrums and won’t let me comment on my own blog.
LikeLiked by 1 person
when I get weighed at the doctor’s office, I wait for the nurse to hit the button to change from kilos to pounds. I am so not a numbers kinda gal…
LikeLiked by 1 person
I think I might like going with 13 stones 6 pounds. Sounds much lighter ;-)
LikeLiked by 2 people
Is it ok to request a knots to mph in wind speed? Always muddles my mind. Seeing it in written form like this would do this midwest gal a world of good. lol
LikeLiked by 1 person
I can do that. Thanks for the request. Since knots seem to be in their own class, I’ll add it to both converters (when I get the metric one written).
LikeLiked by 1 person
Sometimes the comments are just as informative as the blog. Knots – yes the rest of the world has gone metric – except for those measures that we have not quite gotten around to converting and the users of said conversions are not complaining in the slightest. While you are at it is there a metric conversion for time ? Tell Cheryl to put in an extra order of Corona and Blue Moon while we sort that out…
LikeLiked by 1 person
I can add conversions from time to ‘doctor’s office waiting room time’ ‘DMV time’ ‘Jury Duty time’ and then ‘Garden time’ ‘workshop time’ ‘bar time.
Knots seems like a worthy addition.
LikeLiked by 1 person
All good. I was also thinking about a TZ converter for ‘distance’ from Willoughby. Oh and please add a dictionary conversion-o-meter. This one thinks Willoughby should be Hillsborough…
LikeLiked by 1 person
I can’t fix the dictionary. I am truly sirry about that.
LikeLike
I am the generation that grew up with imperial and switched to metric in my late teens. So I go back and forth. Height – imperial, cars – metric, temperature – both. Weight – imperial. Confused – yep.
LikeLiked by 1 person
Jeeze-Louise, Pam! I know David (top comment) was still buying gas in imperial gallons when I first met him. Hopefully those days are gone. We started to convert here, but that movement died. Except for alcohol. I think they discovered they could give us a little less of the good stuff if they converted.
LikeLike
Thank you, Dan. I should be reporting temperatures in metric for our overseas readers. Nice reminder. Thanks.
LikeLiked by 1 person
You’re welcome John. Personally, I think Fahrenheit is more interesting. The additional distance between freezing and boiling allows for finer readings without getting into tenths of degrees. Still, we are the only country that use it :(
LikeLiked by 1 person
I love your converter, just because you know how to MAKE one. I am such a geek. If I didn’t have so much invested in nail polish now, I might take a course in programming. :D
LikeLiked by 2 people
Haha. If I didn’t have so much experience programming I might fancy up my nails 🙂
LikeLiked by 1 person
Neato utility, Dan!
LikeLiked by 1 person
Thanks John
LikeLike
LOL… it’s still too close to math for me. Nicely done though Dan, yes indeed.
But that’s just way too cold, no matter how you measure it. The sky here has been so white with clouds today that I thought it might snow. But it’s too warm for snow. We got some much needed rain though. Hugs!
LikeLiked by 1 person
Well, it is math, in its most enjoyable form, Teagan. Turned into algorithms and tucked in behind a working webpage. It was warm enough in the sun today to sit outside for about half an hour with Maddie. I’m glad you got some rain.
LikeLiked by 1 person
I love to see what computer guys come up with in their spare time – some friends of mine wrote a random corporate jargon generator which, last I looked was still online. It was hysterical. Conversion to stones would be fun… Or maybe, to hands. Wasn’t that the original measurement for at least horses?
LikeLiked by 1 person
Stones should be easy, and they way David says they work, it’s the same bit of logic I need to get metric length back to feet and inches. This is fun stuff – no deadlines, no committee and no accountants.
LikeLike
Having nothing useful to add to this post, I’ll just say that I hope you had a wonderful Tuesday, Dan. :-)
janet
LikeLiked by 1 person
Thanks Janet. It has been a good day.
LikeLiked by 1 person
I need this converter! I just convert Celcius to Fahrenheit the easy way which isn’t precise, but close enough. I multiply the Celcius temp by two and add 32 to get to what I understand in Fahrenheit. It works! I knew how to dress while in London recently.
I needed one for time too so I took a screenshot of a time table for Military and standard time so I wouldn’t miss a bus or train while over there. That worked out well for me too.
LikeLiked by 1 person
I will be working on the Metric->US next. I use this all the time, but I like it better now.
LikeLiked by 1 person
I just opened the converter app on my phone and noticed that there are all sorts of interesting things to convert, including a barleycorn (“a small English unit of length equal to 1/3 of an inch”) and Parsecs (1000 parsecs = 3262 light-years). This could become a full-time retirement job for you!
LikeLiked by 1 person
Haha – I think I’ll stick with the more commonly used measurements. Maybe I’ll add a few from Star Trek ;-)
LikeLiked by 1 person
I expected no less from you Dan. You know, this would have been so handy for me when we lived in Costa Rica. Recipes on their boxes and oven temperatures were always metric and I had to go to the internet for the conversions. I love this!
LikeLiked by 1 person
Thanks Cheryl. I do need to build the Metric-English version of this. It’s easy enough to find the conversions online, but I got tired of looking up the degree symbol and formatting the string. That’s why I decided to write this.
LikeLike
You will notice I’m a day late to this conversation, and it was intentional. I opened this yesterday without coffee in hand and had to set is aside. This morning, with coffee at the ready, it makes perfect sense, and thank you for sharing. :-) It’s always good to keep all the brain cells firing. :-)
LikeLiked by 1 person
No apology required, Judy. I wouldn’t ask anyone to read this without coffee.
LikeLiked by 1 person
This is so cool, Dan!
My question is why, in the world, haven’t we, as American switched over? Could it be because we’re that arrogant?
LikeLiked by 1 person
Thanks, Glynis. I looked into the reason once for a different blog post. Apparently, it would simply be too expensive to change.
LikeLiked by 1 person
Too expensive to get on the same page as the rest of the world.
Okay!?
LikeLiked by 1 person
Thanks for sharing and clearing things up for us.
LikeLiked by 1 person
You’re welcome
LikeLiked by 1 person
That is one cool tool!
LikeLiked by 1 person
Thanks. I’m glad you thing so.
LikeLiked by 1 person
Nice! What a great ad, now with less precision! I LOL’d!
I think weight is hard. Five pounds of potatoes is a side, but five pounds of sugar lasts a long time… Also, on several occasions I noticed that 20 lbs of Moo wasn’t as heavy as 5 pounds of flour? I prefer people are measured by their finer, less weighty attributes.
Gray and 40 and rainy is one thing, gray and 40 and rainy and windy is a whole other thing. Isn’t 85 hotter in Georgia than Indiana? Isn’t 55 colder inside?
Numbers, Man.
LikeLiked by 1 person
85 in Georgia is the worst. Bags of concrete are heavier than any equivalent weight of anything. It is crazy.
LikeLiked by 1 person
YES! And bags of salt pellets. Yeah. It’s a thing.
LikeLiked by 1 person
This is such a useful utility. I’m forever confused when it comes to Farenheits and miles. I understand Centigrade and km better.
LikeLiked by 1 person
I’m glad you like it. I will soon have it flipped around, in case you want to work in Metric first.
LikeLike
Help! Suddenly I’m back in math class! 😀
LikeLike