Conversion : 1 troy ounce = 31.1034768 grams
// eval(nines.substring(0,rsize)+".4")) return invalid.substring(0, rsize); var rounded = "" + (eval(input) + (eval(input) - eval(input.substring(0, rsize)))); return rounded.substring(0, rsize); } function strpos(str, ch) { for (var i = 0; i < str.length; i++) if (str.substring(i, i+1) == ch) return i; return -1; } function resetform(form) { clearform(form); form[1].value = 1; convertform(form); return true; } function clearform(form) { for (var i = 1; i <= form.count; i++) form[i].value = ""; return true; } ///
//
Please enter today's gold price per ounce in your national currency and press calculate to calculate the gold price per gram or Dwt for 10K, 14K or 18K Karat gold. Alternatively enter the scrap gold price per gram or Dwt for 10K, 14K or 18 Karat gold that you have been quoted by a scrap gold dealer and hit calculate to find out the equivalent scrap gold price per ounce you will be paid for your scrap gold.
// factors must convert the first item to the current item. // Be sure to use the correct form index. The first form is // always index "0" and remaining forms are numbered in the // order they appear in the document. document.forms[1].count = 6; // number of unit types document.forms[1].rsize = 7; // Rounding size, use same as SIZE document.forms[1].val1.factor = 1; // $/oz. document.forms[1].val2.factor = 0.018757; // $/gm 14. document.forms[1].val3.factor = 0.0133976; // $/gm 10. document.forms[1].val4.factor = 0.029167; // $/dt 14. document.forms[1].val5.factor = 0.0208333; // $/dt 10. document.forms[1].val6.factor = 0.0241157; // $/gm 18. This is a duplicate scrap gold price calculator so you can compare two gold prices.