Skip to content

Commit a65a6cb

Browse files
authored
Update index.html
1 parent 988abf4 commit a65a6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,7 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
23752375
const topArea = (number / 4) * (length ** 2) / tangent;
23762376
const shape = topLength / baseLength;
23772377
const inverse = 1 - shape;
2378-
const reciprocal = 1 / inverse;
2378+
const reciprocal = parseFloat((1 / inverse).toFixed(5));
23792379
const volume = frustumPyramidVolume(baseArea, topArea, reciprocal, height);
23802380

23812381
document.getElementById('frustum-pyramid-volume').innerText =

0 commit comments

Comments
 (0)