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!
I am trying to download a single submission that has been annotated by a grader using the API. Does anyone know how to do this? I am using Python using the canvasapi and requests libraries to query the preview_url in the submission attachments. import requests from urllib.parse import urljoin preview_url =…
Is there a trick to importing a rubric when using the Canvas rubric template? I download the csv file and fill in the Canvas Rubric template from the Enhanced Grading feature and nothing happens when I try to upload it. It only shows the file name, but not it's size. Yes, it is still a CSV. I've tried removing all symbols…
With the new SpeedGrader UI, we are seeing student names appear in the page title even when the “Hide student names” setting is enabled. When using Classic Quizzes, there is no option within the quiz settings to enable anonymous grading, so we rely on instructors using the hide student names setting in SpeedGrader to…
Speedgrader chaning file name when being downloaded. Speedgrader: When downloading a submitted assignment, the file name is being changed to an unrecognizable name — (Student's actual name was part of the file name — changed for privacy.) Ideas???
We are all familiar with the standard Course Calendar, where assignment due dates are automatically added. However, at my institution, we structure our assignments as Challenges that develop over a period of time, rather than just a single deadline. Currently, the calendar only highlights the "end point." It would be a…