parseMathsForm

Parses a form: value, exact, simplified or rounded(n) with n a whole number from 0 to 10, into a MathsForm, or returns why it could not be read.

@internote/canvas-sdkFunction
On this page
import { parseMathsForm } from '@internote/canvas-sdk';

#Signature

(text: string): { ok: true; form: MathsForm; } | { ok: false; error: string; }

#Parameters

text
The value as written.

Declared in packages/canvas-sdk/src/assess/index.ts:19.

Last updated