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-sdkFunction
On 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

expect
The question's expected value.
places
How many decimal places the question asked for.

Declared in packages/canvas-sdk/src/assess/judge.ts:235.

Last updated