Skip to content

Commit 06ad908

Browse files
authored
Update index.html
1 parent 7edd1a1 commit 06ad908

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
14241424
function updateSegmentArea() {
14251425
const length = parseFloat(document.getElementById('segment-length').value);
14261426
const height = parseFloat(document.getElementById('segment-height').value);
1427-
const thing = 2 * height / length;
1427+
const thing = parseFloat(2 * height / length);
14281428
const angle = parseFloat(atan(this.thing).toFixed(5));
14291429
const cosine = parseFloat(cos(this.angle).toFixed(5));
14301430
const radius = length / 2 * cosine

0 commit comments

Comments
 (0)