Skip to content

Commit 9e99678

Browse files
authored
Update index.html
1 parent 918d135 commit 9e99678

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.html

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

14771477
// Segment validity check
14781478

1479-
if ( ratio < 0.11) {
1480-
document.getElementById('segment-area').innerText = '';
1479+
if (ratio < (1/9)) {
1480+
document.getElementById('segment-area').innerText = 'Out of range';
14811481
return;
14821482
}
14831483

1484-
if ( ratio > 1) {
1484+
if (ratio > 1) {
14851485
document.getElementById('segment-area').innerText = 'A circle-segment is less than half as high as long.';
14861486
return;
14871487
}

0 commit comments

Comments
 (0)