Skip to main content Skip to complementary content

equals

Returns true if the first two arguments are equal.

All supported literals can be used. The third argument allows you to specify an epsilon to check a non-strict equality. It can be used only if at least one of the values to compare is a real number. The other number can be a real number, a string representation of a real number, or bytes.

Arguments

  1. First value.
  2. Second value.
  3. Epsilon as a double or float.

Examples

Expression Result
equals(1.57, 1.58, 0.1F) true

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!