Celsius Value To Fahrenheit

I have a database that has a hi/lo temperature field in a table. The data type is "Integer". When I display a page in English I want to assign the temperature value to a variable but convert it in the process. Something like

day_high = rs("dh") ???

day_low = rs("dl") ???

There must be some math formula that I can use for converting to Farenheight no?

View Replies


ADVERTISEMENT

Convert Celsius To Farenheit In String

How can I get the Celsius temperature of a string and convert to Farenheit?

<%
Celsius = (Fahrenheit - 32) * 5/9
Fahrenheit = Celsius * 9/5 + 32

testString="it is 30C today and will be 32C tomo"
testString=Replace(testString, "find celsius", "replace with Fahrenheit")
response.write(testString)

%>

I need to look for numbers followed by "C", and use that number, convert it and add "F".

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved