We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7edd1a1 commit 06ad908Copy full SHA for 06ad908
1 file changed
index.html
@@ -1424,7 +1424,7 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
1424
function updateSegmentArea() {
1425
const length = parseFloat(document.getElementById('segment-length').value);
1426
const height = parseFloat(document.getElementById('segment-height').value);
1427
- const thing = 2 * height / length;
+ const thing = parseFloat(2 * height / length);
1428
const angle = parseFloat(atan(this.thing).toFixed(5));
1429
const cosine = parseFloat(cos(this.angle).toFixed(5));
1430
const radius = length / 2 * cosine
0 commit comments