@clief_castleton
Do you want to truncate the calculated answer or the answer that the student enters?
For the calculated answer, you can use the floor() function to wrap your calculation.
Let's say that you do the calculation and the answer before rounding turns out to be 12.76. You want the student to enter 12 but not 12.76.
If expression is what came up with 12.76, in the calculation, use floor(expression).
floor(12.76) = 12
Then to make sure that the student only enters 12, make it an exact answer by setting the tolerance to 0.
For the student answer, there is no way to round what they enter. You can fake it it a little. Here's an example:
Let's say that you do the calculation and the answer before rounding turns out to be 12.76. You want the students to enter 12, but also want to give credit if they don't. You will not accept it if they round up to 13.
If expression is what came up with 12.76, then you could use: 0.4999+floor(expression)
0.4999+floor(12.76) = 0.4999 + 12 = 12.4999.
Now set the tolerance to 0.5. This will allow them to enter any value between 11.9999 and 12.9999.
Most students won't enter 11.9999, especially if the answer is 12.76, but it would allow you to accept anything starting with 12, which would essentially be the same as you taking the floor of their response.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.