Flow meter Directory

The Comprehensive Flowmeters Resource

Mass or weight

{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 Carats (metric) Earth Masses Grains Grams Hundredweights (long) Hundredweights (short) Kilograms [kg] Ounces (avoirdupois) Ounces (troy) Pounds (avoirdupois) Pounds (troy) Solar Masses Slugs (g-pounds) Stones Tones (UK or long) Tons (US or short) Tonnes”>
<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 – Mass Weight</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>
</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″>Mass or weight</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” size=”-1″><b><font color=”#FFFFFF”>Input</font></b></font></td>
                 </tr>
                 <tr>
                    
                 <td bgcolor=”#FF0000″>
                    <table>
                        <tr>
                         <td>
                            <input type=”text” size=”20″ name=”ValueFrom” value=”1″ onKeyUp=”Convert()”> </td>
                         <td>
                            <select name=”UnitFrom” size=”1″ onChange=”Convert()”>
                             <option value=”0.0002″>carats (metric)</option>
                             <option value=”5.980e24″>Earth masses</option>
                             <option value=”0.00006479891″>grains</option>
                             <option value=”1e-3″>grams</option>
                             <option value=”50.80234544″>hudredweights (long)</option>
                             <option value=”45.359237″>hudredweights (short)</option>
                             <option selected value=”1″>kilograms [kg]</option>
                             <option value=”0.028349523125″>ounces (avoirdupois)</option>
                             <option value=”0.0311034768″>ounces (troy)</option>
                             <option value=”0.45359237″>pounds (avoirdupois)</option>
                             <option value=”0.3732417216″>pounds (troy)</option>
                             <option value=”1.989e30″>Solar masses</option>
                             <option value=”14.593903″>slugs (g-pounds)</option>
                             <option value=”6.35029318″>stones</option>
                             <option value=”1016.0469088″>tons (UK or long)</option>
                             <option value=”907.18474″>tons (US or short)</option>
                             <option value=”1000″>tonnes</option>
                            </select> </td>
                         <td>
                            <input type=”button” name=”ButtonGO” value=”Go!” onClick=”Convert()” 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” size=”-1″><b><font 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=”ConvertBack()”> </td>
                         <td>
                            <select name=”UnitTo” size=”1″ onChange=”Convert()”>
                             <option value=”0.0002″>carats (metric)</option>
                             <option value=”5.980e24″>Earth masses</option>
                             <option value=”0.00006479891″>grains</option>
                             <option value=”1e-3″>grams</option>
                             <option value=”50.80234544″>hudredweights (long)</option>
                             <option value=”45.359237″>hudredweights (short)</option>
                             <option selected value=”1″>kilograms [kg]</option>
                             <option value=”0.028349523125″>ounces (avoirdupois)</option>
                             <option value=”0.0311034768″>ounces (troy)</option>
                             <option value=”0.45359237″>pounds (avoirdupois)</option>
                             <option value=”0.3732417216″>pounds (troy)</option>
                             <option value=”1.989e30″>Solar masses</option>
                             <option value=”14.593903″>slugs (g-pounds)</option>
                             <option value=”6.35029318″>stones</option>
                             <option value=”1016.0469088″>tons (UK or long)</option>
                             <option value=”907.18474″>tons (US or short)</option>
                             <option value=”1000″>tonnes</option>
                            </select> </td>
                        </tr>
                    </table> </td>
                 </tr>
                </table> </td>
            </tr>
         </table>
        <table border=”0″ cellspacing=”0″ cellpadding=”0″ width=”100%”>
         <tr>
            <td class=”size12pt” style=”color: #999″> The SI unit for mass is the kilogram. UK and
             US use the Avoirdupois system of weights. The Troy system of weights
             is used in England for gold, silver and precious stones.</td>
         </tr>
        </table> </td>
    </tr>
    <tr>
     <td></td>
    </tr>
    </table>
</form>
</body>

</html>

{/source}

Scroll to Top