Difference between revisions of "AssertEqualsNumericalNumber"

From ApCoCoAWiki
(New page: <command> <title>AssertEqualsNumericalNumber</title> <short_description>Compares two numerical numbers.</short_description> <syntax> $apcocoa/ts/assert.AssertEqualsNumericalNumber(Result: ...)
 
Line 23: Line 23:
 
<key>Assert</key>
 
<key>Assert</key>
 
</command>
 
</command>
 +
[http://writing-help.org/ essay writing help]

Revision as of 14:01, 28 November 2011

AssertEqualsNumericalNumber

Compares two numerical numbers.

Syntax

$apcocoa/ts/assert.AssertEqualsNumericalNumber(Result: RAT, Expected: RAT, Eps: RAT, ErrMsg: STRING)

Description

This function compares two numerical numbers. The absolute value of the difference between 'Result' and 'Expected' must be smaller than epsilon 'Eps'. If not it throws an error and prints the error message 'ErrMsg'.

  • @param Result: The numerical number

  • @param Expected: The expected numerical number

  • @param Eps: Epsilon

  • @param ErrMsg: Error message

Example

$apcocoa/ts/assert.AssertTrue(0.98, 1.00, 0.1, "The result does not equal the expected numerical number.");



essay writing help