FracNumCmp

From WeBWorK_wiki
Jump to navigation Jump to search

frac_num_cmp

Description

Alias for num_cmp($ans) or num_cmp($ans, mode=>'frac')

Syntax

std_num_cmp($correctAnswer, $relPercentTol, $format, $zeroLevel, $zeroLevelTol)
Only the first entry (answer) is required, the rest are optional

Params

Equivalent to

num_cmp(
$correctAnswer,
mode => 'frac',
relTol => $relPercentTol,
format => $format,
zeroLevel => $zeroLevel,
zeroLevelTol => $zeroLevelTol )

Returns

An answer evaluator