{"id":1983,"date":"2024-01-22T14:49:01","date_gmt":"2024-01-22T11:49:01","guid":{"rendered":"http:\/\/digas.com.sa\/?page_id=1983"},"modified":"2024-01-22T14:49:01","modified_gmt":"2024-01-22T11:49:01","slug":"pressure-and-temperature-converter","status":"publish","type":"page","link":"https:\/\/digas.com.sa\/ar\/pressure-and-temperature-converter\/","title":{"rendered":"\u0645\u062d\u0648\u0644 \u0627\u0644\u0636\u063a\u0637 \u0648\u062f\u0631\u062c\u0629 \u0627\u0644\u062d\u0631\u0627\u0631\u0629"},"content":{"rendered":"<!-- Temperature Converter -->\n\t\t<table border=\"1\" cellpadding=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#D3DAE0\" width=\"100%\" bgcolor=\"#D3DAE0\" height=\"30\">\n\t\t\t<tr><td align=\"right\"><font face=\"Tahoma\" size=\"2\" color=\"#000\"><b>\u0645\u062d\u0648\u0644 \u062f\u0631\u062c\u0629 \u0627\u0644\u062d\u0631\u0627\u0631\u0629<\/b><\/font><\/td><\/tr>\n\t\t<\/table>\n\t\t<form name=\"tempe\" action=\"\">\n\t\t\t<font face=\"Arial\" color=\"#5D5D5D\" size=\"2\">\n\t\t\t\t\u0641\u0647\u0631\u0646\u0647\u0627\u064a\u062a: <input type=\"text\" name=\"F\" size=\"7\" onchange=\"eval('C.value = ' + this.form.C_expr.value); (checkNum(this.value))\">\n\t\t\t\t<input type=\"hidden\" name=\"F_expr\" value=\"(Math.round(((212-32)\/100 * C.value + 32)*100))\/100 \">\n\t\t\t\t\u0645\u0626\u0648\u064a\u0629: <input type=\"text\" name=\"C\" size=\"7\" onchange=\"eval('F.value = ' + this.form.F_expr.value); (checkNum(this.value))\">\n\t\t\t\t<input type=\"hidden\" name=\"C_expr\" value=\"(Math.round((100\/(212-32) * (F.value - 32))*100))\/100 \">\n\t\t\t\t<input name=\"convert\" type=\"button\" value=\"\u062a\u062d\u0648\u064a\u0644\">\n\t\t\t\t<input type=\"reset\" name=\"reset\" value=\"\u0625\u0639\u0627\u062f\u0629 \u0636\u0628\u0637\">\n\t\t\t<\/font>\n\t\t<input type=\"hidden\" name=\"trp-form-language\" value=\"ar\"\/><\/form>\n\n\t\t<!-- Pressure Converter -->\n\t\t<table border=\"1\" cellpadding=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#D3DAE0\" width=\"100%\" bgcolor=\"#D3DAE0\" height=\"30\">\n\t\t\t<tr><td align=\"right\"><font face=\"Tahoma\" size=\"2\" color=\"#000\"><b>Pressure Converter<\/b><\/font><\/td><\/tr>\n\t\t<\/table>\n\t\t<form name=\"pressure\" action=\"\">\n\t\t\t<table cellpadding=\"3\" border=\"1\" bordercolor=\"#FFFFFF\" align=\"center\">\n\t\t\t\t<tr>\n\t\t\t\t\t<td align=\"center\"><font color=\"#5D5D5D\" size=\"2\">\u0628\u0627\u0633\u0643\u0627\u0644 (Pa)<\/font><\/td>\n\t\t\t\t\t<td><input type=\"text\" name=\"mPascal\" size=\"10\" onchange=\"if (checkNum(this.value)) compute(this.form,this.name)\"><\/td>\n\t\t\t\t\t<td align=\"center\"><font color=\"#5D5D5D\" size=\"2\">Millimeter of mercury<\/font><\/td>\n\t\t\t\t\t<td><input type=\"text\" name=\"yMilimeter\" size=\"10\" onchange=\"if (checkNum(this.value)) compute(this.form,this.name)\"><\/td>\n\t\t\t\t<\/tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align=\"center\"><font color=\"#5D5D5D\" size=\"2\">\u0643\u064a\u0644\u0648\u0628\u0627\u0633\u0643\u0627\u0644 (kPa)<\/font><\/td>\n\t\t\t\t\t<td><input type=\"text\" name=\"mKilopascal\" size=\"10\" onchange=\"if (checkNum(this.value)) compute(this.form,this.name)\"><\/td>\n\t\t\t\t\t<td align=\"center\"><font color=\"#5D5D5D\" size=\"2\">\u0643\u062c\u0645 \u0644\u0643\u0644 \u0633\u0645 \u0645\u0631\u0628\u0639 (\u0643\u062c\u0645\/\u0633\u06452)<\/font><\/td>\n\t\t\t\t\t<td><input type=\"text\" name=\"okgcm2\" size=\"10\" onchange=\"if (checkNum(this.value)) compute(this.form,this.name)\"><\/td>\n\t\t\t\t<\/tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align=\"center\"><font color=\"#5D5D5D\" size=\"2\">\u0645\u0644\u064a \u0628\u0627\u0631<\/font><\/td>\n\t\t\t\t\t<td><input type=\"text\" name=\"mMilibar\" size=\"10\" onchange=\"if (checkNum(this.value)) compute(this.form,this.name)\"><\/td>\n\t\t\t\t\t<td align=\"center\"><font color=\"#5D5D5D\" size=\"2\">\u0628\u0648\u0635\u0629 \u0645\u0646 \u0627\u0644\u0632\u0626\u0628\u0642<\/font><\/td>\n\t\t\t\t\t<td><input type=\"text\" name=\"yInch\" size=\"10\" onchange=\"if (checkNum(this.value)) compute(this.form,this.name)\"><\/td>\n\t\t\t\t<\/tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align=\"center\"><font color=\"#5D5D5D\" size=\"2\">\u0628\u0627\u0631<\/font><\/td>\n\t\t\t\t\t<td><input type=\"text\" name=\"mBar\" size=\"10\" onchange=\"if (checkNum(this.value)) compute(this.form,this.name)\"><\/td>\n\t\t\t\t\t<td align=\"center\"><font color=\"#5D5D5D\" size=\"2\">\u0631\u0637\u0644 \u0644\u0643\u0644 \u0642\u062f\u0645 \u0645\u0631\u0628\u0639 (psf)<\/font><\/td>\n\t\t\t\t\t<td><input type=\"text\" name=\"oPound_per_square_foot\" size=\"10\" onchange=\"if (checkNum(this.value)) compute(this.form,this.name)\"><\/td>\n\t\t\t\t<\/tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align=\"center\"><font color=\"#5D5D5D\" size=\"2\">\u0627\u0644\u063a\u0644\u0627\u0641 \u0627\u0644\u062c\u0648\u064a (atm)<\/font><\/td>\n\t\t\t\t\t<td><input type=\"text\" name=\"oAtmosphere\" size=\"10\" onchange=\"if (checkNum(this.value)) compute(this.form,this.name)\"><\/td>\n\t\t\t\t\t<td align=\"center\"><font color=\"#5D5D5D\" size=\"2\">\u0631\u0637\u0644 \u0644\u0643\u0644 \u0628\u0648\u0635\u0629 \u0645\u0631\u0628\u0639\u0629 (psi)<\/font><\/td>\n\t\t\t\t\t<td><input type=\"text\" name=\"opsi\" size=\"10\" onchange=\"if (checkNum(this.value)) compute(this.form,this.name)\"><\/td>\n\t\t\t\t<\/tr>\n\t\t\t<\/table>\n\t\t\t<div align=\"center\">\n\t\t\t\t<input name=\"convert\" type=\"button\" value=\"\u062a\u062d\u0648\u064a\u0644\">\n\t\t\t\t<input name=\"res\" type=\"reset\" value=\"\u0645\u0633\u062d \u0643\u0627\u0641\u0629 \u0627\u0644\u0623\u0631\u0642\u0627\u0645\">\n\t\t\t<\/div>\n\t\t<input type=\"hidden\" name=\"trp-form-language\" value=\"ar\"\/><\/form>\n\n\t\t<script>\n\t\t\tfunction PRESSURE() {\n\t\t\t\tthis.mPascal = 98067.123;\n\t\t\t\tthis.yMilimeter = 735.563;\n\t\t\t\tthis.mKilopascal = 98.067;\n\t\t\t\tthis.okgcm2 = 1.000;\n\t\t\t\tthis.mMilibar = 980.669;\n\t\t\t\tthis.yInch = 28.959;\n\t\t\t\tthis.mBar = 0.981;\n\t\t\t\tthis.oPound_per_square_foot = 2048.161;\n\t\t\t\tthis.oAtmosphere = 0.968;\n\t\t\t\tthis.opsi = 14.223;\n\t\t\t}\n\n\t\t\tdata = new PRESSURE();\n\n\t\t\tfunction checkNum(str) {\n\t\t\t\tfor (var i=0; i<str.length; i++) {\n\t\t\t\t\tvar ch = str.substring(i, i + 1)\n\t\t\t\t\tif (ch!=\".\" && ch!=\"+\" && ch!=\"-\" && ch!=\"e\" && ch!=\"E\" && (ch < \"0\" || ch > \"9\")) {\n\t\t\t\t\t\talert(\"Please enter a valid number.\");\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tfunction normalize(what,digits) {\n\t\t\t\tvar str=\"\"+what;\n\t\t\t\tvar pp=Math.max(str.indexOf(\"+\"),str.indexOf(\"-\"));\n\t\t\t\tvar idot=str.indexOf(\".\");\n\t\t\t\tif (idot>=1) {\n\t\t\t\t\tvar ee=(pp>0)?str.substring(pp-1,str.length):\"\";\n\t\t\t\t\tdigits+=idot;\n\t\t\t\t\tif (digits>=str.length) return str;\n\t\t\t\t\tif (pp>0 && digits>=pp) digits-=pp;\n\t\t\t\t\tvar c=eval(str.charAt(digits));\n\t\t\t\t\tvar ipos=digits-1;\n\t\t\t\t\tif (c>=5) {\n\t\t\t\t\t\twhile (str.charAt(ipos)==\"9\") ipos--;\n\t\t\t\t\t\tif (str.charAt(ipos)==\".\") {\n\t\t\t\t\t\t\tvar nc=eval(str.substring(0,idot))+1;\n\t\t\t\t\t\t\tif (nc==10 && ee.length>0) {\n\t\t\t\t\t\t\t\tnc=1;\n\t\t\t\t\t\t\t\tee=\"e\"+(eval(ee.substring(1,ee.length))+1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn \"\"+nc+ee;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn str.substring(0,ipos)+(eval(str.charAt(ipos))+1)+ee;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar ret=str.substring(0,digits)+ee;\n\t\t\t\t\t\tfor (var i=0; i<ret.length; i++)\n\t\t\t\t\t\t\tif (ret.charAt(i)>\"0\" && ret.charAt(i)<=\"9\") return ret;\n\t\t\t\t\t\treturn str;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn str;\n\t\t\t}\n\n    function compute(obj, val) {\n        if (obj[val].value) {\n            var inputInPascal = obj[val].value \/ data[val]; \/\/ Step 1: convert to Pascal\n            for (var i in data) {\n                obj[i].value = normalize(inputInPascal * data[i], 5); \/\/ Step 2: convert to others\n            }\n        }\n    }\n\t\t<\/script>","protected":false},"excerpt":{"rendered":"Temperature Converter Fahrenheit: Celsius: Pressure Converter Pascal (Pa) Millimeter of mercury Kilopascal (kPa) Kg per square cm (kg\/cm2) Millibar Inch of mercury Bar Pound per square<span class=\"excerpt-hellip\"> [\u2026]<\/span>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1983","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/digas.com.sa\/ar\/wp-json\/wp\/v2\/pages\/1983"}],"collection":[{"href":"https:\/\/digas.com.sa\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/digas.com.sa\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/digas.com.sa\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digas.com.sa\/ar\/wp-json\/wp\/v2\/comments?post=1983"}],"version-history":[{"count":1,"href":"https:\/\/digas.com.sa\/ar\/wp-json\/wp\/v2\/pages\/1983\/revisions"}],"predecessor-version":[{"id":1984,"href":"https:\/\/digas.com.sa\/ar\/wp-json\/wp\/v2\/pages\/1983\/revisions\/1984"}],"wp:attachment":[{"href":"https:\/\/digas.com.sa\/ar\/wp-json\/wp\/v2\/media?parent=1983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}