Skip to content

Commit 1362f3f

Browse files
authored
Update index.html
1 parent 0254b79 commit 1362f3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,10 +1476,10 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
14761476

14771477
// Segment validity check
14781478

1479-
if (!(ratio >= 0.11 && ratio <= 1)) {
1479+
if (ratio < 0.11 || ratio > 1) {
14801480
document.getElementById('segment-area').innerText = 'The ratio is out of range';
14811481
return;
1482-
}
1482+
}
14831483

14841484
const angle = parseFloat(2 * Atan(ratio));
14851485
const sine = parseFloat(sin(angle));

0 commit comments

Comments
 (0)