Quantcast

Maximum PC

It is currently Mon Sep 22, 2014 11:22 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Degrees F, Degrees C Conversion
PostPosted: Mon Sep 01, 2008 8:17 am 
Team Member [Top 500]*
Team Member [Top 500]*
User avatar

Joined: Thu Jun 24, 2004 2:22 pm
Posts: 8720
Location: Cleveland, Ohio
Frequently people post temperatures as Degrees F or C and converting between the two can be a pain. Most people convert starting with a Google of "Temperature Conversion" and find a site for converting all sorts of units including temperatures. You enter a temperature and click a button and a converted value appears.

I made a simple tool for doing simple temperature conversions without going to a website or dragging out a calculator trying to remember the formulas to get from Deg. C to F and F to C.

This is an extremely simple little program and the download may be found here:

http://www.bearblain.com/downloads.htm

The program is the My Temp. Converter link and the file downloads as a zip file. A little way down the page are some instructions. Relatively simple quick download and install. The program also includes an uninstaller if you want to trash it.

Please use the My Temp Converter link and not the other temp converter link. The other link was specific to something else and I don't want my case rattled!

<EDIT> Runs on Windows XP and Vista, not tested on anything else. </EDIT>

Ron


Last edited by Reloadron on Mon Sep 01, 2008 9:07 am, edited 1 time in total.

Top
  Profile  
 
 Post subject:
PostPosted: Mon Sep 01, 2008 8:59 am 
Java Junkie
Java Junkie
User avatar

Joined: Mon Jun 14, 2004 10:23 am
Posts: 24224
Location: Granite Heaven
For the Windows-phobic, you're out of luck .. this appears to be a Windows-only exe.

It does run in Wine, but not properly:
Image

Sadly, I've no idea how to fix it. Good thing most people run Windows. :)

Thanks for the tool, bud. :D


Top
  Profile  
 
 Post subject:
PostPosted: Mon Sep 01, 2008 9:11 am 
Team Member [Top 500]*
Team Member [Top 500]*
User avatar

Joined: Thu Jun 24, 2004 2:22 pm
Posts: 8720
Location: Cleveland, Ohio
Thanks Jip. Yeah. the 41 is correct but the 15 should be -15. I did edit my original post to reflect I used it on Windows XP and Vista.

I really appreciate you taking the time to download and run it as well as post the screen shot. Thanks a bunch.

Ron


Top
  Profile  
 
 Post subject:
PostPosted: Mon Sep 01, 2008 9:27 am 
Java Junkie
Java Junkie
User avatar

Joined: Mon Jun 14, 2004 10:23 am
Posts: 24224
Location: Granite Heaven
No problem .. I just wanted to see if I could get a random .exe to run in my wine installation, but I'm foiled (for now).

Can you send me the source? My contact info is in our folder (or just PM me and I'll give you my gmail). I'd like to see if I can figure out why it isn't working.

Linux users can install 'units' (available through both apt and rpm) to simplify conversions between almost any units.


Top
  Profile  
 
 Post subject:
PostPosted: Mon Sep 01, 2008 9:46 am 
Team Member [Top 500]*
Team Member [Top 500]*
User avatar

Joined: Thu Jun 24, 2004 2:22 pm
Posts: 8720
Location: Cleveland, Ohio
Jipstyle wrote:
No problem .. I just wanted to see if I could get a random .exe to run in my wine installation, but I'm foiled (for now).

Can you send me the source? My contact info is in our folder (or just PM me and I'll give you my gmail). I'd like to see if I can figure out why it isn't working.

Linux users can install 'units' (available through both apt and rpm) to simplify conversions between almost any units.


Sent a PM as there isn't much there. :lol:

Ron


Top
  Profile  
 
 Post subject:
PostPosted: Mon Sep 01, 2008 1:58 pm 
Million Club - 5 Plus
Million Club - 5 Plus
User avatar

Joined: Fri Apr 25, 2008 6:35 am
Posts: 1998
nice and simple, I like it.

thanks :D


Top
  Profile  
 
 Post subject:
PostPosted: Mon Sep 01, 2008 4:35 pm 
Team Member [Top 500]*
Team Member [Top 500]*
User avatar

Joined: Thu Jun 24, 2004 2:22 pm
Posts: 8720
Location: Cleveland, Ohio
CharBroiled wrote:
nice and simple, I like it.

thanks :D


Glad you like it, thanks.

Ron


Top
  Profile  
 
 Post subject:
PostPosted: Mon Sep 01, 2008 6:32 pm 
Team Member Top 250
Team Member Top 250
User avatar

Joined: Wed Sep 19, 2007 6:20 am
Posts: 2080
Location: Pennsylvania, USA
Alternatively, just type "xxx degrees fahrenheit to celsius" or vice-versa in Google and it'll give you a conversion.


Top
  Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2008 6:53 am 
Team Member [Top 500]*
Team Member [Top 500]*
User avatar

Joined: Thu Jun 24, 2004 2:22 pm
Posts: 8720
Location: Cleveland, Ohio
FusilliJerry82 wrote:
Alternatively, just type "xxx degrees fahrenheit to celsius" or vice-versa in Google and it'll give you a conversion.


Thanks for that useful information!

Ron


Top
  Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2008 6:45 pm 
Klamath
Klamath
User avatar

Joined: Thu Apr 24, 2008 4:44 am
Posts: 224
F=(9/5)*C+32


Top
  Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2008 6:52 pm 
Team Member Top 250
Team Member Top 250
User avatar

Joined: Wed Sep 19, 2007 6:20 am
Posts: 2080
Location: Pennsylvania, USA
Reloadron wrote:
FusilliJerry82 wrote:
Alternatively, just type "xxx degrees fahrenheit to celsius" or vice-versa in Google and it'll give you a conversion.


Thanks for that useful information!

Ron


No problem. Google actually does a lot more conversion than you'd think. The other day I used it to convert a pressure from psi to gigapascals.


Top
  Profile  
 
 Post subject:
PostPosted: Fri Sep 05, 2008 9:41 am 
Boy in Black
Boy in Black
User avatar

Joined: Thu Jun 24, 2004 1:40 pm
Posts: 24339
Location: South of heaven
Nice! Something you can fire up without having an internet connection is always a useful tool (weird. FF's spellcheck wanted internet capitalized. It's THE Internet I guess).

Setting up to go online while doing a common bench run is the last thing some really don't want to deal with...it's an inconvenience. Thus far, I've either used a calculator or gone to an On Line Convertor on Teh Internetz.


Top
  Profile  
 
 Post subject:
PostPosted: Sat Sep 06, 2008 7:14 am 
Team Member [Top 500]*
Team Member [Top 500]*
User avatar

Joined: Thu Jun 24, 2004 2:22 pm
Posts: 8720
Location: Cleveland, Ohio
Chumly wrote:
Nice! Something you can fire up without having an internet connection is always a useful tool (weird. FF's spellcheck wanted internet capitalized. It's THE Internet I guess).

Setting up to go online while doing a common bench run is the last thing some really don't want to deal with...it's an inconvenience. Thus far, I've either used a calculator or gone to an On Line Convertor on Teh Internetz.


Yep, it is the Internet unless it is an Intranet. Capital I. :lol: Maybe we should consult Al Gore?

Yeah, I wrote it for me so I wouldn't have to go online and it comes in handy if I am converting several temperatures from C to F or F to C which is why I wrote it the way I did.

Ron


Top
  Profile  
 
 Post subject:
PostPosted: Sat Sep 06, 2008 1:15 pm 
Little Foot
Little Foot
User avatar

Joined: Wed Oct 06, 2004 8:28 am
Posts: 102
Location: Someplace between here and there... I think... I dont know anymore...
Actually, to convert for Farenhiet to Celsius is simple,

(Far/2)-13=Cel

To convert to the other way is just as simple,

(Cel+13)x2=Far


Top
  Profile  
 
 Post subject:
PostPosted: Sat Sep 06, 2008 2:37 pm 
Team Member [Top 500]*
Team Member [Top 500]*
User avatar

Joined: Thu Jun 24, 2004 2:22 pm
Posts: 8720
Location: Cleveland, Ohio
Mobius wrote:
Actually, to convert for Farenhiet to Celsius is simple,

(Far/2)-13=Cel

To convert to the other way is just as simple,

(Cel+13)x2=Far


That really isn't a very good formula for temperature conversion. It is simple but not really very accurate dependent upon the converted temperature.

Starting with Ice Point of 32 degrees F:

32 / 2 = 16 and 16 - 13 = 3 (Should be 0)

Then:

50 / 2 = 25 and 25 - 13 = 12 (Should be 10)

Then:

100 / 2 = 50 and 50 - 13 = 37 (Should be 37.78 or 38 rounded)

Then:

200 / 2 = 100 and 100 - 13 = 87 (Should be 93.33)

Then:

400 / 2 = 200 and 200 - 13 = 187 (Should be 204.4)

The only place the formula comes close is at about 100 degrees F for conversion to degrees C.

The more popular conversion formulas are:

Quote:
Tc = (5/9)*(Tf-32); Tc = temperature in degrees Celsius, Tf = temperature in degrees F.

Tf = (9/5)*Tc+32; Tc = temperature in degrees Celsius, Tf = temperature in degrees C.

or

To convert from F to C, try these calculations manually.
98.6 + 40 = 138.6, and 138.6 * 5/9 = 77. For the final calculation, remove the 40. 77 - 40 = 37

To convert from C to F, try these calculations manually.
37 + 40 = 77, and 77 * 9/5 = 138.6. For the final calculation, remove the 40. 138.6 - 40 = 98.6


The latter formulas are what the little program uses. The formulas using 13 as some refrence will work but only accurately for a very limited span of numbers.

Ron


Top
  Profile  
 
 Post subject:
PostPosted: Wed Jul 01, 2009 7:59 pm 
Little Foot
Little Foot
User avatar

Joined: Mon Feb 27, 2006 6:29 pm
Posts: 197
Location: Newburgh, IN
I think we should use kelvin.

Fahrenheit
[K] = ([°F] + 459.67) × 5â


Top
  Profile  
 
 Post subject:
PostPosted: Thu Jul 02, 2009 4:58 am 
Team Member [Top 500]*
Team Member [Top 500]*
User avatar

Joined: Thu Jun 24, 2004 2:22 pm
Posts: 8720
Location: Cleveland, Ohio
OK, then you use the Kelvin scale. Meanwhile I'll try to find my original source code for that project and add Kelvin to things. :lol:

Seriously, I have no clue where I placed that code. :oops: It should be on one of these machines.

Ron


Top
  Profile  
 
 Post subject: Re: Degrees F, Degrees C Conversion
PostPosted: Sat Apr 02, 2011 7:50 am 
8086
8086

Joined: Thu Sep 29, 2005 2:51 am
Posts: 10
Location: God's waiting room, Fl
http://joshmadison.com/convert-for-windows/

Simple little prog that'll convert damn near anything...


Top
  Profile  
 
 Post subject: Re: Degrees F, Degrees C Conversion
PostPosted: Sat Apr 02, 2011 8:42 am 
Team Member [Top 500]*
Team Member [Top 500]*
User avatar

Joined: Thu Jun 24, 2004 2:22 pm
Posts: 8720
Location: Cleveland, Ohio
That was a nice find. I loved the author's quote:

Quote:
Wasting time online since 1993


The original program was written strictly for temperatures but I like the version linked to. Programs like this are more a matter of time and patience than anything else, obviously Josh Madison had plenty of both. :)

Couple that with the fact he is NYC makes it even better. NYC people are among the best on the entire planet!

Ron


Top
  Profile  
 
 Post subject: Re: Degrees F, Degrees C Conversion
PostPosted: Thu May 05, 2011 1:10 pm 
8086
8086

Joined: Mon May 02, 2011 6:50 am
Posts: 51
For those who are "Windows-phobic", I wrote a simple bash script to use :)

Code:
# !/bin/sh
# Converts temperatures in Farenheit (F) and Celcius(C)
# Depends on bc installed
# Example: $ ./convert 32F
# Author: Stanislav Ponomarev "Hexorg"

# Amount of decimal places:
PRECISION=2


TEMP=`echo $1 | sed 's/[F,C]//'`
TYPE=`echo $1 | sed 's/[0-9]*//'`
ERROR="Syntax error. Usage: $ ./convert 32F or $ ./convert 15C"

if [ "`echo $TEMP | grep [a-zA-Z]` `echo $TYPE | sed 's/[F,C]//'`" = " " ]; then
   # continue script
   case $TYPE in
      "")
         echo $ERROR 1>&2
         ;;
      "F")   
         echo "`echo  "scale=$PRECISION; ($TEMP-32)*5/9" | bc -l`C"
         ;;
      "C")   
         echo "`echo "scale=$PRECISION; $TEMP*9/5+32" | bc -l`F"
         ;;
   esac
else
   # syntax error
   echo $ERROR 1>&2
fi


It does require bc for floating point operations, otherwise it wouldn't be precise enough. The rest is pretty easy to figure out. Just save the text above into any file, then run "chmod 775 file_name", and then "./file_name 45C" will give you proper result.


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group