{"id":1637,"date":"2024-11-20T08:03:02","date_gmt":"2024-11-20T08:03:02","guid":{"rendered":"https:\/\/quickpercentcalc.com\/staerdfraedi\/tommur-til-cm-reiknivel\/"},"modified":"2025-04-07T18:35:25","modified_gmt":"2025-04-07T18:35:25","slug":"tommur-til-cm-reiknivel","status":"publish","type":"page","link":"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/","title":{"rendered":"Tommur til cm reikniv\u00e9l"},"content":{"rendered":"\n<p>\u00deessi reikniv\u00e9l byggir \u00e1 valnu gildi sem gefi\u00f0 er anna\u00f0hvort \u00ed tommur e\u00f0a cm til a\u00f0 breyta \u00ed hina eininguna.<\/p>\n\n<p>Hefur \u00fe\u00fa einhvern t\u00edma velt \u00fev\u00ed fyrir \u00fe\u00e9r hvernig \u00e1 a\u00f0 breyta tommum \u00ed cm? \u00deetta er algeng \u00e1skorun, s\u00e9rstaklega \u00feegar \u00fe\u00fa lendir \u00ed m\u00e6lingum og st\u00e6r\u00f0um sem nota ekki metrakerfi\u00f0. <\/p> <p>Til a\u00f0 komast a\u00f0 \u00fev\u00ed hversu margir sentimetrar eru \u00ed tommu, margfaldar \u00fe\u00fa einfaldlega tommuna me\u00f0 2,54. \u00deetta er vegna \u00feess a\u00f0 einn tommur jafngildir 2,54 cm. <\/p>\n<h2>Form\u00fala til a\u00f0 breyta tommum \u00ed cm:<\/h2>\n<style>\n.frac {<br \/>\n    display: inline-block;<br \/>\n    position: relative;<br \/>\n    vertical-align: middle;<br \/>\n    letter-spacing: 0.001em;<br \/>\n    text-align: center;<br \/>\n}<br \/>\n.frac > span {<br \/>\n    display: block;<br \/>\n    padding: 0.1em;<br \/>\n}<br \/>\n.frac span.bottom {<br \/>\n    border-top: thin solid black;<br \/>\n}<br \/>\n.frac span.symbol {<br \/>\n    display: none;<br \/>\n}<br \/>\n<\/style>\n<div class=\"formel\">tommufj\u00f6ldi x 2,54<\/div>\n<p>\nVi\u00f0 getum au\u00f0veldlega sn\u00fai\u00f0 form\u00falunni vi\u00f0 til a\u00f0 finna hversu margir tommur eru \u00ed tilteknu cm gildi.<\/p>\n<h2>Form\u00fala til a\u00f0 breyta cm \u00ed tommur:<\/h2>\n<div class=\"formel\">fj\u00f6ldi cm \u00f7 2,54<\/div>\n<h2>Umbreyttu \u00e1 milli sent\u00edmetra og tommu<\/h2>\n<p>Nota\u00f0u \u00feessa reikniv\u00e9l til a\u00f0 breyta gildi \u00far cm \u00ed tommur e\u00f0a \u00far tommum \u00ed cm.<\/p>\n\n<label for=\"verdi\">Gildi<\/label>\n<input id=\"verdi\" type=\"number\" placeholder=\"Sl\u00e1\u00f0u inn gildi\"\/>\n\n<label for=\"retning\">Umbreyta:<\/label>\n<select id=\"retning\">\n<option value=\"cmToTommur\">Sentimetrar til tommur<\/option>\n <option value=\"tommurToCm\">Tommur til sent\u00edmetrar<\/option>\n<\/select>\n\n<input id=\"regnut\" type=\"button\" value=\"Umbreyta\"\/>\n<div id=\"resultatBoks\" style=\"visibility: hidden;\">Ni\u00f0ursta\u00f0a:\n<span id=\"resultat\" class=\"kalkyleResultat\"><\/span><\/div>\n<h2>Hva\u00f0 er tommur?<\/h2>\n<p>\nTomma er hef\u00f0bundin m\u00e6lieining sem almennt er notu\u00f0 \u00ed enskum\u00e6landi l\u00f6ndum eins og Bandar\u00edkjunum og Bretlandi. Ein tommur er n\u00e1kv\u00e6mlega jafn 2,54 sent\u00edmetrum og er oft nota\u00f0 til a\u00f0 m\u00e6la: <\/p>\n<ul>\n \t<li>Skj\u00e1st\u00e6r\u00f0ir (td sj\u00f3nv\u00f6rp, t\u00f6lvuskj\u00e1ir, s\u00edmar)<\/li>\n \t<li>Fatast\u00e6r\u00f0ir (td mittist\u00e6r\u00f0, lengd buxna)<\/li>\n \t<li>Vi\u00f0ur og byggingarefni (td breidd og \u00feykkt planka)<\/li>\n<\/ul>\n<h2>Hva\u00f0 er sentimetri?<\/h2><p>\nSentimetri (cm) er eining \u00ed metrakerfinu, sem er sta\u00f0all \u00ed flestum \u00f6\u00f0rum l\u00f6ndum. Sentimetra er hundra\u00f0asti \u00far metri og er nota\u00f0ur til a\u00f0 m\u00e6la lengdir og vegalengdir \u00ed \u00f6llu fr\u00e1 hversdagslegum verkefnum til v\u00edsindalegra \u00fatreikninga. <\/p>\n\n<script>\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n    document.getElementById(\"regnut\").addEventListener(\"click\", function () {\n        let verdi = parseFloat(document.getElementById(\"verdi\").value.replace(\/,\/g, \".\"));\n        let retning = document.getElementById(\"retning\").value;\n\n        if (isNaN(verdi)) {\n            alert(\"Please enter a valid number.\");\n            return;\n        }\n\n        let resultat;\n\n        if (retning === \"cmToInches\") {\n            resultat = verdi \/ 2.54;\n        } else if (retning === \"inchesToCm\") {\n            resultat = verdi * 2.54;\n        }\n\n        resultat = resultat % 1 !== 0 ? resultat.toFixed(2).replace(\".\", \",\") : resultat.toFixed();\n\n        document.getElementById(\"resultat\").innerHTML = resultat;\n        document.getElementById(\"resultatBoks\").style.visibility = \"visible\";\n    });\n});\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>\u00deessi reikniv\u00e9l byggir \u00e1 valnu gildi sem gefi\u00f0 er anna\u00f0hvort \u00ed tommur e\u00f0a cm til a\u00f0 breyta \u00ed hina eininguna. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1615,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"kalkulator-side.php","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-1637","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tommur til cm reikniv\u00e9l - Quick Percent Calculator<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/\" \/>\n<meta property=\"og:locale\" content=\"is_IS\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tommur til cm reikniv\u00e9l - Quick Percent Calculator\" \/>\n<meta property=\"og:description\" content=\"\u00deessi reikniv\u00e9l byggir \u00e1 valnu gildi sem gefi\u00f0 er anna\u00f0hvort \u00ed tommur e\u00f0a cm til a\u00f0 breyta \u00ed hina eininguna. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/\" \/>\n<meta property=\"og:site_name\" content=\"Quick Percent Calculator\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-07T18:35:25+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/\",\"url\":\"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/\",\"name\":\"Tommur til cm reikniv\u00e9l - Quick Percent Calculator\",\"isPartOf\":{\"@id\":\"https:\/\/quickpercentcalc.com\/is\/#website\"},\"datePublished\":\"2024-11-20T08:03:02+00:00\",\"dateModified\":\"2025-04-07T18:35:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/#breadcrumb\"},\"inLanguage\":\"is\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/quickpercentcalc.com\/is\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"St\u00e6r\u00f0fr\u00e6\u00f0i\",\"item\":\"https:\/\/quickpercentcalc.com\/is\/math\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Tommur til cm reikniv\u00e9l\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/quickpercentcalc.com\/is\/#website\",\"url\":\"https:\/\/quickpercentcalc.com\/is\/\",\"name\":\"Quick Percent Calculator\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/quickpercentcalc.com\/is\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"is\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tommur til cm reikniv\u00e9l - Quick Percent Calculator","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/","og_locale":"is_IS","og_type":"article","og_title":"Tommur til cm reikniv\u00e9l - Quick Percent Calculator","og_description":"\u00deessi reikniv\u00e9l byggir \u00e1 valnu gildi sem gefi\u00f0 er anna\u00f0hvort \u00ed tommur e\u00f0a cm til a\u00f0 breyta \u00ed hina eininguna. [&hellip;]","og_url":"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/","og_site_name":"Quick Percent Calculator","article_modified_time":"2025-04-07T18:35:25+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/","url":"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/","name":"Tommur til cm reikniv\u00e9l - Quick Percent Calculator","isPartOf":{"@id":"https:\/\/quickpercentcalc.com\/is\/#website"},"datePublished":"2024-11-20T08:03:02+00:00","dateModified":"2025-04-07T18:35:25+00:00","breadcrumb":{"@id":"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/#breadcrumb"},"inLanguage":"is","potentialAction":[{"@type":"ReadAction","target":["https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/quickpercentcalc.com\/is\/staerdfraedi\/tommur-til-cm-reiknivel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/quickpercentcalc.com\/is\/"},{"@type":"ListItem","position":2,"name":"St\u00e6r\u00f0fr\u00e6\u00f0i","item":"https:\/\/quickpercentcalc.com\/is\/math\/"},{"@type":"ListItem","position":3,"name":"Tommur til cm reikniv\u00e9l"}]},{"@type":"WebSite","@id":"https:\/\/quickpercentcalc.com\/is\/#website","url":"https:\/\/quickpercentcalc.com\/is\/","name":"Quick Percent Calculator","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/quickpercentcalc.com\/is\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"is"}]}},"_links":{"self":[{"href":"https:\/\/quickpercentcalc.com\/is\/wp-json\/wp\/v2\/pages\/1637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/quickpercentcalc.com\/is\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/quickpercentcalc.com\/is\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/quickpercentcalc.com\/is\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/quickpercentcalc.com\/is\/wp-json\/wp\/v2\/comments?post=1637"}],"version-history":[{"count":2,"href":"https:\/\/quickpercentcalc.com\/is\/wp-json\/wp\/v2\/pages\/1637\/revisions"}],"predecessor-version":[{"id":1676,"href":"https:\/\/quickpercentcalc.com\/is\/wp-json\/wp\/v2\/pages\/1637\/revisions\/1676"}],"up":[{"embeddable":true,"href":"https:\/\/quickpercentcalc.com\/is\/wp-json\/wp\/v2\/pages\/1615"}],"wp:attachment":[{"href":"https:\/\/quickpercentcalc.com\/is\/wp-json\/wp\/v2\/media?parent=1637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}