-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#10433] Instructor view results: Use fixed-width floating numbers #11059
[#10433] Instructor view results: Use fixed-width floating numbers #11059
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I think we don't need the paranthesis to call toFixed()
?
I am not certain if the parentheses are necessary, I will try it without the parentheses some time in the next day or two. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for your contribution!
Fixes #10433
I added ().toFixed(2) to lines 65, 82, and 83. This causes the value returned to always go to two decimal places e.g. 1 -> 1.00, 2.1 -> 2.10, 3.222 -> 3.22, etc.