Skip to main content

is_approx_to_constant

Method of BoolArray.

Overloads

NameDescription
is_approx_to_constant(bool val, bool tolerance) -> boolReturns true if all elements of the BoolArray lhs are approximately equal to the constant val, within the specified tolerance.
is_approx_to_constant(bool val) -> boolReturns true if all elements of the BoolArray lhs are approximately equal to the constant val.
is_approx_to_constant(integer val) -> boolReturns true if all elements of the BoolArray lhs are approximately equal to the constant val.
is_approx_to_constant(integer val, bool tolerance) -> boolReturns true if all elements of the BoolArray lhs are approximately equal to the constant val, within the specified tolerance.

is_approx_to_constant(bool val, bool tolerance) -> bool

Returns true if all elements of the BoolArray lhs are approximately equal to the constant val, within the specified tolerance.

Parameters

  • val: The constant to compare against.
  • tolerance: The tolerance to use for comparison.

is_approx_to_constant(bool val) -> bool

Returns true if all elements of the BoolArray lhs are approximately equal to the constant val.

Parameters

  • val: The constant to compare against.

is_approx_to_constant(integer val) -> bool

Returns true if all elements of the BoolArray lhs are approximately equal to the constant val.

Parameters

  • val: The constant to compare against.

is_approx_to_constant(integer val, bool tolerance) -> bool

Returns true if all elements of the BoolArray lhs are approximately equal to the constant val, within the specified tolerance.

Parameters

  • val: The constant to compare against.
  • tolerance: The tolerance to use for comparison.