The Comprehensive Flowmeters Resource

Temperature

{source}
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>

<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<meta name=”description” content=”CONVERSION TO Celcius Kelvin Fahrenheit Rankine Reamure “>
<meta name=”keywords” content=”Unit Converter units conversion convertor convert metric system UK US metric system SI imperial weight mass length volume speed density pressure area force temperature Flow meter directory”>
<title>ONLINE CONVERSION Temperature degrees C, F and more</title>
<style type=”text/css”>
A {
    text-decoration: none;
    color: black;
}
A:hover {
    text-decoration: underline;
    color: #FF9933;
}
.size12pt {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}
</style>
<style type=”text/css”>
<!–
.style8 {
    color: #FFFFFF;
}
body {
    background-color: #A3A3A3;
}
>
</style>
<script type=”text/javascript”>
<!–
var numDigs;
var curQuantity;
var initializing = true;

function loadOptions(){
    numDigs = getNumDigs();
    
    if (getDefaultQuantityMethod() == “userDefined”)
     curQuantity = getUserQuantity();
    else curQuantity = getCookie(“curQuantity”);
    if (curQuantity == null) curQuantity = “Length”;

    displayPage(curQuantity.toLowerCase() + “.htm”);
    initializing = false;
}

function getNumDigs(){
    var numDigs = getCookie(“UCNumDigs”);
    if (numDigs != null) return parseInt(numDigs);
    else return 6;
}

function getCookie(name){
    var cname = name + “=”;
    var dc = document.cookie;
    if (dc.length > 0) {
    begin = dc.indexOf(cname);
    if (begin != -1) {
     begin += cname.length;
     end = dc.indexOf(“;”, begin);
     if (end == -1) end = dc.length;
     return unescape(dc.substring(begin, end));
    }
    }
    return null;
}
function getDefaultQuantityMethod() {
    if (getCookie(“defaultQuantityMethod”) == “userDefined”)
    return “userDefined”;
    else return “remember”;
}
function getUserQuantity(){
    var i;
    var returnQuantity;
    var cookieQuantity = getCookie(“userQuantity”);
    
    // Default value
    returnQuantity = “Length”;

    // Check if valid cookie quantity exists
    if (cookieQuantity != null) {
    for (i = 0; i <= (quantities.length – 1); i++) {
     if (cookieQuantity == quantities[i]) returnQuantity = cookieQuantity;
    }
    }
    return returnQuantity;
}
function displayPage(URL)
{
    window.location.href = URL;
}

function Convert(){
    with(document.ConvertForm){
    ValueTo.value = formatFloat(parseFloat(ValueFrom.value) *
     parseFloat(UnitFrom.options[UnitFrom.selectedIndex].value) /
     parseFloat(UnitTo.options[UnitTo.selectedIndex].value), numDigs);
    }
}

function ConvertBack(){
    with(document.ConvertForm){
    ValueFrom.value = formatFloat(parseFloat(ValueTo.value) /
     parseFloat(UnitFrom.options[UnitFrom.selectedIndex].value) *
     parseFloat(UnitTo.options[UnitTo.selectedIndex].value), numDigs);
    }
}

function formatFloat(number,X) {
// rounds number to X decimal places, default is 6
    X = (!X ? 6 : X);
    return Math.round(number*Math.pow(10,X))/Math.pow(10,X);
}

>
</script>
<script type=”text/javascript”>
<!–

function ToSI(Temperature, TemperatureUnit)
{
    if (TemperatureUnit == “Celsius”) return Temperature + 273.15;
    else if (TemperatureUnit == “Fahrenheit”) return 5/9 * (Temperature + 459.67);
    else if (TemperatureUnit == “Kelvin”) return Temperature;
    else if (TemperatureUnit == “Rankine”) return 5/9 * Temperature;
    else if (TemperatureUnit == “Réaumure”) return 5/4 * Temperature + 273.15;
    else {
    window.alert(‘Error: Unknown temperature unit: ‘ + TemperatureUnit);
    return 0;
    }
}

function ConvertTemperature()
{
    with (document.ConvertForm) {
    // Initialization
    TempIn = parseFloat(ValueFrom.value);
    UnitFromName = UnitFrom.options[UnitFrom.selectedIndex].value;
    UnitToName = UnitTo.options[UnitTo.selectedIndex].value;

    // Conversion
    TempSI = ToSI(TempIn, UnitFromName);
    ValueTo.value = parent.formatFloat(FromSI(TempSI, UnitToName), parent.numDigs);
    }
}

function FromSI(Temperature, TemperatureUnit)
{
    if (TemperatureUnit == “Celsius”) return Temperature – 273.15;
    else if (TemperatureUnit == “Fahrenheit”) return 9/5 * Temperature – 459.67;
    else if (TemperatureUnit == “Kelvin”) return Temperature;
    else if (TemperatureUnit == “Rankine”) return 9/5 * Temperature;
    else if (TemperatureUnit == “Réaumure”) return 4/5 * (Temperature – 273.15);
    else {
    window.alert(‘Error: Unknown temperature unit: ‘ + TemperatureUnit);
    return 0;
    }
}

function ConvertTemperatureBack()
{
    with (document.ConvertForm) {
    // Initialization
    TempIn = parseFloat(ValueTo.value);
    UnitFromName = UnitFrom.options[UnitFrom.selectedIndex].value;
    UnitToName = UnitTo.options[UnitTo.selectedIndex].value;

    // Conversion
    TempSI = ToSI(TempIn, UnitToName);
    ValueFrom.value = parent.formatFloat(FromSI(TempSI, UnitFromName), parent.numDigs);
    }
}

function initialize(){
    parent.initialize(‘Temperature’);
    ConvertTemperature();
}
// —></script>
</head>

<body leftmargin=”10″ marginheight=”0″ marginwidth=”10″ topmargin=”0″>
<form name=”ConvertForm”>
    <table border=”0″ cellspacing=”0″ cellpadding=”5″ align=”left”>
    <tr>
     <td><font face=”Arial, Helvetica, sans-serif” size=”+1″><b style=”color: #000″>Temperature</b></font></td>
    </tr>
    <tr>
     <td>
         <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″ align=”center”>
            <tr>
             <td bgcolor=”#000000″>
                <table width=”100%” border=”0″ cellspacing=”1″ cellpadding=”5″>
                 <tr>
                    
                 <td bgcolor=”#666666″><font face=”Arial, Helvetica, sans-serif”><b><font size=”-1″ color=”#FFFFFF”>Input</font></b></font></td>
                 </tr>
                 <tr>
                    
                 <td bgcolor=”#FF0000″>
                    <table>
                        <tr>
                         <td>
                            <input type=”text” size=”20″ name=”ValueFrom” value=”0″ onKeyUp=”ConvertTemperature()”> </td>
                         <td>
                            <select name=”UnitFrom” size=”1″ onChange=”ConvertTemperature()”>
                             <option value=”Celsius”>Celsius</option>
                             <option selected value=”Kelvin”>Kelvin</option>
                             <option value=”Fahrenheit”>Fahrenheit</option>
                             <option value=”Rankine”>Rankine</option>
                             <option value=”Réaumure”>Réaumure</option>
                            </select> </td>
                         <td>
                            <input type=”button” name=”ButtonGO” value=”Go!” onClick=”ConvertTemperature()” onFocus=”if(this.blur)this.blur()”> </td>
                        </tr>
                    </table> </td>
                 </tr>
                </table> </td>
            </tr>
         </table>
         <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″>
            <tr>
            
            <td>&nbsp;</td>
            </tr>
         </table>
         <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″ align=”center”>
            <tr>
             <td bgcolor=”#000000″>
                <table width=”100%” border=”0″ cellspacing=”1″ cellpadding=”5″>
                 <tr>
                    
                 <td bgcolor=”#666666″><font face=”Arial, Helvetica, sans-serif”><b><font size=”-1″ color=”#FFFFFF”>Output</font></b></font></td>
                 </tr>
                 <tr>
                    
                 <td bgcolor=”#CCCCCC”>
                    <table>
                        <tr valign=”middle”>
                         <td>
                            <input type=”text” size=”20″ name=”ValueTo” onKeyUp=”ConvertTemperatureBack()”> </td>
                         <td>
                            <select name=”UnitTo” size=”1″ onChange=”ConvertTemperature()”>
                             <option value=”Celsius”>Celsius</option>
                             <option selected value=”Kelvin”>Kelvin</option>
                             <option value=”Fahrenheit”>Fahrenheit</option>
                             <option value=”Rankine”>Rankine</option>
                             <option value=”Réaumure”>Réaumure</option>
                            </select> </td>
                        </tr>
                    </table> </td>
                 </tr>
                </table> </td>
            </tr>
         </table>
         <font face=”Arial, Helvetica, sans-serif” size=”+1″></font><font face=”Arial, Helvetica, sans-serif” size=”+1″></font> </td>
    </tr>
    <tr>
     <td></td>
    </tr>
    </table>
    <br>
</form>
</body>

</html>

{/source}

Featured Product of the Month!

Flowmeter Supplier Texas, Louisiana, Arkansas and more

We are teamed up with suppliers of various flow meter designs and techniques to solve flow measurements in liquids. If in doubt, give us a call. We have access to reliable flow meter solutions and manufacturers.

Scroll to Top