{"id":3210,"date":"2018-03-01T13:48:12","date_gmt":"2018-03-01T12:48:12","guid":{"rendered":"http:\/\/shotgundentist.com\/blog\/?page_id=3210"},"modified":"2018-03-02T11:18:44","modified_gmt":"2018-03-02T10:18:44","slug":"alcohol-percentage-to-freezing-point-calculator","status":"publish","type":"page","link":"https:\/\/shotgundentist.com\/blog\/usefull-tools\/alcohol-percentage-to-freezing-point-calculator\/","title":{"rendered":"Alcohol Percentage to Freezing Point Calculator"},"content":{"rendered":"<p><script>\nfunction alcToFreeze(percentage) {\n\treturn 32 - 9 * percentage \/ 8;\n}\nfunction getUnitChar() {\n\tunit = document.getElementById(\"unitInput\").value;\n\tswitch(unit) {\n\t\tcase \"celsius\":\n\t\t\treturn \"C\";\n\t\tcase \"fahrenheit\":\n\t\t\treturn \"F\";\n\t\tcase \"kelvin\":\n\t\t\treturn \"K\";\n\t\tdefault:\n\t\t\treturn \"?\";\n\t}\n}\nfunction calculateClicked() {\n\tpercentage = document.getElementById(\"percentageInput\").value;\n\tfreezingPointFahrenheit = alcToFreeze(percentage);\n\tunit = document.getElementById(\"unitInput\").value;\n\tfreezingPoint = \"undefined\";\n\tswitch(unit) {\n\t\tcase \"celsius\":\n\t\t\tfreezingPoint = (freezingPointFahrenheit - 32) * 5\/9;\n\t\t\tbreak;\n\t\tcase \"fahrenheit\":\n\t\t\tfreezingPoint = freezingPointFahrenheit;\n\t\t\tbreak;\n\t\tcase \"kelvin\":\n\t\t\tfreezingPoint = (freezingPointFahrenheit - 32) * 5\/9 + 273.15;\n\t\t\tbreak;\n\t}\n\tdocument.getElementById(\"result\").value = freezingPoint.toFixed(2) + \" \" + getUnitChar();\n}\n<\/script><\/p>\n<p><span>Calculate freezing point of alcoholic liquid<\/span><\/p>\n<table id=\"calculator\" style=\"width:500px;height:100px\">\n<tr style=\"height:50%\">\n<td style=\"width:50%\">\n\t\t\tAlcohol percentage:<br \/>\n\t\t\t<input type=\"number\" id=\"percentageInput\" \/>\n\t\t<\/td>\n<td style=\"width:50%\">\n\t\t\tTemperature unit:<br \/>\n\t\t\t<select id=\"unitInput\"><option value=\"celsius\">Celsius<\/option><option value=\"fahrenheit\">Fahrenheit<\/option><option value=\"kelvin\">Kelvin<\/option><\/select>\n\t\t<\/td>\n<\/tr>\n<tr style=\"height:50%\">\n<td style=\"width:50%\">\n\t\t\tFreezing point: <input style=\"width:72px\" id=\"result\" readonly \/>\n\t\t<\/td>\n<td style=\"width:50%\">\n\t\t\t<button value=\"calculate\" onclick=\"return calculateClicked()\">Calculate<\/button>\n\t\t<\/td>\n<\/tr>\n<\/table>\n<p><strong>Note:<\/strong> This doesn&#8217;t take into account the sugar contents of the beverage or other factors that might further lower its freezing point. However, it gives you a &#8220;safe&#8221; lower limit, above which your drink should be safe from exploding.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Calculate freezing point of alcoholic liquid Alcohol percentage: Temperature unit: CelsiusFahrenheitKelvin Freezing point: Calculate Note: This doesn&#8217;t take into account the sugar contents of the beverage or other factors that might further lower its freezing point. However, it gives you a &#8220;safe&#8221; lower limit, above which your drink should be safe from exploding.<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":147,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3210","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/pages\/3210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/comments?post=3210"}],"version-history":[{"count":8,"href":"https:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/pages\/3210\/revisions"}],"predecessor-version":[{"id":3219,"href":"https:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/pages\/3210\/revisions\/3219"}],"up":[{"embeddable":true,"href":"https:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/pages\/147"}],"wp:attachment":[{"href":"https:\/\/shotgundentist.com\/blog\/wp-json\/wp\/v2\/media?parent=3210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}