HyperWorks Tools

::hwat::math::IfEqual

::hwat::math::IfEqual

Previous topic Next topic No expanding text in this topic  

::hwat::math::IfEqual

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::hwat::math::IfEqual - Check the equality of two float numbers.

 

SYNTAX

::hwat::math::IfEqual d_f1 d_f2 d_err

 

ARGUMENTS

d_f1

The first float number.

d_f2

The second float number.

d_err

Optional, the error for judging the equality.

 

RETURNS

1 if d_f1 equals d_f2.

0 if d_f1 does not equal d_f2.

 

EXAMPLE

::hwat::math::IfEqual $x $y 1.0e-5

 

Comments

The default error for judging the equality is 1.0e-6.

 

See also

Math Functions