Skip to content

Commit

Permalink
fix setting cgpa value
Browse files Browse the repository at this point in the history
  • Loading branch information
snehilshah committed Feb 6, 2024
1 parent 48bed2e commit 86cef0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Calculators/CGPA-To-Percentage-Calculator/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ function convertPercentageToCGPA() {
// for too low percentage cgpa goes negative
if (cgpa < 0) {
showError('Percentage too low')
} else {
cgpaInput.value = cgpa
}
} else {
// resetting values
Expand Down

0 comments on commit 86cef0c

Please sign in to comment.