Rounding to the nearest 100

Joseph.C.99
Joseph.C.99 Posts: 3 🌱
edited November 18 in Higher Ed / Postsecondary

Hi there,

I have an arithmetic question in BrightSpace where students are required to round to the nearest hundred.

Round {a} to the nearest hundred.

I was just wondering what the formula should be for this question for it to work correctly. At the moment, the formula is round({a}), but all the answers are coming up as 0. Any advise on this would be greatly appreciated.

Thank you

Tagged:

Answers

  • Krizzy.S.9720
    Krizzy.S.9720 Posts: 80 admin

    Hello @Joseph.C.99, it seems there isn’t any existing documentation addressing your specific question. I’d recommend raising a ticket with the D2L Support Team through your institution's helpdesk for further assistance. Please let me know if you need any help with that!

    Krizzy

  • Ron.W.451
    Ron.W.451 Posts: 6 🌱
    edited November 18

    From the Brightspace Question Editor documentation for the arithmetic question type (https://community.d2l.com/brightspace/kb/articles/2800-creating-question-library-questions#create-arithmetic-questions) the listed mathematical functions doesn't include a round({a}) function. You can also find the list of supported functions by selecting the ? button to the right of the formula field in the question builder.

    In some situations you might be able to use the modulo operator as a work-around, but it would only work in situations where you know that the value must be rounded up, or must be rounded down.

    For example, if you defined a to have a minimum of 100 and a maximum of 149, you would always be rounding down to 100 in that case. Then you can use the formula {a}-({a}%100).

    Alternatively, if the variable was restricted to 250 to 299 you know that you are always rounding up to 300 in that instance, so you could use this formula {a}+(100-({a}%100)).

    It wouldn't be a bad idea to request a round({a}) function through the Brightspace Product Idea Exchange (PIE) or upvote it if someone has already requested it.

  • Joseph.C.99
    Joseph.C.99 Posts: 3 🌱

    Thank you so much @Ron.W.451 and @Krizzy.S.9720. Both answers are very helpful. How do I raise a ticket with the D2L support team for this issue?

  • Krizzy.S.9720
    Krizzy.S.9720 Posts: 80 admin

    Hello @Joseph.C.99!

    You may need to reach out your institution's administrator (internally) so that they could help you raise a ticket! I will inbox you for more information.

    Simultaneously, we feel that this is a very good idea so you can also request a round({a}) function through the Brightspace Product Idea Exchange (PIE). This is a helpful link to get started!