Skip to content

Commit 918d135

Browse files
authored
Update index.html
1 parent 9cfc7dc commit 918d135

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ <h4 style="font-size:160%;margin:7px">Trigonometry</h4>
966966

967967
const joker = Math.abs(value - input);
968968
if (joker < minDiff) {
969-
minDiff = joker;
969+
minDiff = difference;
970970
bestMatch = {
971971
angle: key, // We're using this key as the input (the angle) that produced the value
972972
value: value
@@ -1476,7 +1476,7 @@ <h6 style="font-size:160%;margin:7px">Area of a circle</h6>
14761476

14771477
// Segment validity check
14781478

1479-
if ( ratio === 0) {
1479+
if ( ratio < 0.11) {
14801480
document.getElementById('segment-area').innerText = '';
14811481
return;
14821482
}

0 commit comments

Comments
 (0)