I need an algorithm for rounding whole numbers in a quiz. Is that possible to do? For example, the number is 405 and I want the student to round to the nearest hundred.
Actually, there is a helper function in formula which is "round", which should give you what you want. To round to the nearest 100, divide by 100, round and then multiply by 100: 100*round(x/100). Please test to see if it works as you expect, as I haven't used them before (especially for negative numbers, if you're using those).
For a list of helper functions, check Canvas Formula Quiz Question Helper Functions - Instructure Community - 387062.
Used in a formula question, that allows you to give them a number, say 405, and ask them to round them:405/100=4.05round(4.05)=4100*4=400
Classic Quizzes formula questions: How do I create a Formula quiz question with a sin... - Instructure Community - 920 New Quizzes formula question: How do I create a Formula question in New Quizzes? - Instructure Community - 956
If you're using a formula, you can set a precision range with \(\pm\) a given value, but not to round up or down to a value. If it's a numeric response, you can set a range of values. This would likely require a new feature that could be requested. Otherwise, if you want to have different values as in a formula but with very different answers to round to 100, using a question bank (with the numeric question type) and various values might be the solution.
Hey, you could use the floor function in formula question in a new quiz. Assuming that x is your variable name, to round to the nearest 100, you could use: floor("x"/100)*100.
Hope that helps!
A colleague asked me how to reuse the questions from the 14 quizzes he has already created as a large question pool to draw questions from for a cumulative exam. Each of the 14 quizzes has multiple question groups, and none of them was linked to a question bank at the time of creation. The best thing I could find is the…
Hello, In the past, changing participation dates in the course settings effectively acted as an override on the term access settings. Unless I'm missing something, that no longer seems to be the case. Even if course participation is changed from term to course, it is the term access dates that dictate access within the…
Summary:The Learning Mastery Gradebook allows drag-and-drop reordering of outcome columns, and this triggers a call to /api/v1/courses/:course_id/assign_outcome_order. The API returns 204 No Content (success), but the column order does not persist after page refresh. Steps to Reproduce: Open Learning Mastery Gradebook for…
Hi all, Quick question about the Gradebook color status for a 2-part checkpoint discussion. If a student completes the first due date (initial post) but does not complete the required replies by the second due date, is there any way for Canvas to automatically show a color (e.g., missing/late) instead of staying as…
We have recently encountered an issue where two students were unable to see the "Take the Quiz" button. These students were taking different exams for different courses within our Testing Center. Both exams required Respondus LockDown Browser and were restricted to specific IP addresses. In both cases, the students were…