We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 918d135 commit 9e99678Copy full SHA for 9e99678
1 file changed
index.html
@@ -1476,12 +1476,12 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
1476
1477
// Segment validity check
1478
1479
- if ( ratio < 0.11) {
1480
- document.getElementById('segment-area').innerText = '';
+ if (ratio < (1/9)) {
+ document.getElementById('segment-area').innerText = 'Out of range';
1481
return;
1482
}
1483
1484
- if ( ratio > 1) {
+ if (ratio > 1) {
1485
document.getElementById('segment-area').innerText = 'A circle-segment is less than half as high as long.';
1486
1487
0 commit comments