We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 854b14c commit 1d1275fCopy full SHA for 1d1275f
1 file changed
index.html
@@ -3284,7 +3284,7 @@ <h3 itemprop="name" style="margin:7px">Area of a Circle Segment</h3>
3284
const length = parseFloat(document.getElementById('segment-length').value);
3285
const height = parseFloat(document.getElementById('segment-height').value);
3286
3287
- if (isNaN(length) || isNaN(height) || height === 0) {
+ if (isNaN(length) || isNaN(height) || height === 0 || length === 0) {
3288
document.getElementById('segment-area').innerText = '';
3289
return;
3290
}
0 commit comments