Forum archive 2000-2006

Michael Gage - strict_num_cmp

Michael Gage - strict_num_cmp

by Arnold Pizer -
Number of replies: 0
inactiveTopicstrict_num_cmp topic started 8/13/2001; 1:56:46 PM
last post 8/13/2001; 1:56:46 PM
userMichael Gage - strict_num_cmp  blueArrow
8/13/2001; 1:56:46 PM (reads: 1914, responses: 0)

strict_num_cmp

Description
Alias for num_cmp($ans, mode=>'strict'). Only numbers are allowed. No fractions, no arithmetic operations, no function evaluation.

Syntax

strict_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 => 'strict',
relTol => $relPercentTol,
format => $format,
zeroLevel => $zeroLevel,
zeroLevelTol => $zeroLevelTol )

Returns

An answer evaluator

See Also

num_cmp -- the new replacement for this macro

 

<| Post or View Comments |>