eqFloat

Syntax

eqFloat(X, Y, [precision=9])

Arguments

X / Y is a numeric scalar/vector/matrix. If X or Y is a vector/matrix, the other is a scalar or a vector/matrix of the same size.

Details

Return the element-by-element comparison of X and Y with the given precision.

Examples

$ eqFloat(0.1234567891, 0.123456789);
1

$ eqFloat(0.123456788, 0.123456789);
0

$ eqFloat(0.123456788 0.123456789 0.1234567891, 0.123456789);
[0,1,1]