Description Usage Arguments Value Note See Also Examples
Checks studentans
against correctans
. For scalars only.
1 2 | grade.number(correctans, studentans, tolerance=0.01,
useeval=TRUE, usena=FALSE, useinf=FALSE, quiet=TRUE)
|
correctans |
a vector of type |
studentans |
a vector of type |
tolerance |
a |
useeval |
|
usena |
|
useinf |
|
quiet |
|
TRUE
if studentans
is within tolerance
of
correctans
. FALSE
otherwise.
The grade
main page contains a discussion of the
common parameters correctans, studentans, useeval, usena,
useinf, quiet
.
grade
grade.set
grade.negative
1 2 3 4 5 6 | grade.number(1, "1") # TRUE
grade.number(1, "1.1", tolerance=".01") # FALSE
grade.number(pi, "3.142", tolerance=".001") # TRUE
grade.number(1, "[1]") # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.