::hwat::math::IfEqual - Check the equality of two float numbers.
::hwat::math::IfEqual d_f1 d_f2 d_err
d_f1 |
The first float number. |
d_f2 |
The second float number. |
d_err |
Optional, the error for judging the equality. |
1 if d_f1 equals d_f2.
0 if d_f1 does not equal d_f2.
::hwat::math::IfEqual $x $y 1.0e-5
The default error for judging the equality is 1.0e-6.