Author | Message |
---|---|
harry_520
Posts: 76
|
Posted 15:44 Oct 30, 2013 |
For rounding the number grades, do we round down all the numbers that are below the middle of two grades and round up all the numbers that are above the middle of two grades? For example, if the number grade is 3.8, should we give an "A-" or an "A"? Last edited by harry_520 at
16:28 Oct 31, 2013.
|
cysun
Posts: 2935
|
Posted 15:51 Oct 30, 2013 |
Yes. And 3.8 is rounded to A- as it's closer to 3.7 instead of 4. |
harry_520
Posts: 76
|
Posted 16:27 Oct 31, 2013 |
Why do I get A- when I enter 3.85 and B- when I enter 2.85. All other numbers return correct letter grades or error message. I even tried deleting the university database. |
cysun
Posts: 2935
|
Posted 16:54 Oct 31, 2013 |
Try changing the argument type to double. |
harry_520
Posts: 76
|
Posted 17:06 Oct 31, 2013 |
Changing to float type solves the issue. |