We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0254b79 commit 1362f3fCopy full SHA for 1362f3f
1 file changed
index.html
@@ -1476,10 +1476,10 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
1476
1477
// Segment validity check
1478
1479
- if (!(ratio >= 0.11 && ratio <= 1)) {
+if (ratio < 0.11 || ratio > 1) {
1480
document.getElementById('segment-area').innerText = 'The ratio is out of range';
1481
return;
1482
- }
+}
1483
1484
const angle = parseFloat(2 * Atan(ratio));
1485
const sine = parseFloat(sin(angle));
0 commit comments