roundedAnswerText
Returns a numeric expectation written to a number of decimal places, as LaTeX, or null when a component is not a number.
@internote/canvas-sdkOn this page
import { roundedAnswerText } from '@internote/canvas-sdk';The answer a rounded(n) question wants, to show once the reader has answered: 8.06 for a number, (1.00, 2.50) for a tuple, a column for a vector, rows for a matrix.
#Signature
(expect: MathsValue, places: number): string | null#Parameters
expectThe question's expected value.
placesHow many decimal places the question asked for.
Declared in packages/canvas-sdk/src/assess/judge.ts:235.