Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
proportion_converter [2025/02/21 19:00] Scott Larsonproportion_converter [2025/06/07 02:18] (current) Scott Larson
Line 1: Line 1:
 ====== Proportion Converter ====== ====== Proportion Converter ======
  
-[[proportion_converter|To Reload Converter ⇒ Click Here]]\\ +[[https://eyefixer.org/proportion-converter/|Start Converter]]
- +
-<html> +
-<head> +
-    <meta charset="UTF-8"> +
-    <meta name="viewport" content="width=device-width, initial-scale=1.0"> +
-    <title>Calculate A</title> +
-</head> +
-<body> +
-    <h3>Convert % to 1 in... </h3> +
-    <label for="inputB">Enter Percent Occurrence</label> +
-    <input type="number" id="inputB"> +
-    <br><br> +
-    <button onclick="calculateA()">Calculate</button> +
-    <br><br> +
-    <p id="result"></p> +
-     +
-    <script> +
-        function calculateA() { +
-            let B = parseFloat(document.getElementById("inputB").value); +
-            let resultElement = document.getElementById("result"); +
- +
-            if (B === 0) { +
-                resultElement.textContent = "Value cannot be zero"; +
-                return; +
-            } +
-            if (isNaN(B)) { +
-                resultElement.textContent = "Please enter a valid number."; +
-                return; +
-            } +
-            let A = 100 B; +
-            let formattedA = A.toLocaleString(); // Adds thousands separator +
- +
-            resultElement.innerHTML = "The occurrence is <b>1 in " + formattedA + "</b>"; +
-        } +
-    </script> +
-</body> +
-</html>+
  
 {{tag>calculator}} {{tag>calculator}}