Crate close_to

source ·

Traits§

  • A trace that guarantees that two decimals are equal to a specified precision. Implemented in float type by default.
  • Trait to determine if two decimals are equal to a specified precision. Implemented in float type by default.

Functions§

  • Ensures that two decimals are equal with the specified precision. In case of panic, the function outputs the value of the decimal along with a debug expression.
  • Ensures that two decimals are not equal with the specified precision. In case of panic, the function outputs the value of the decimal along with a debugging expression.
  • Determine if two decimals are equal with the specified precision.
  • Determine if two decimals are not equal with the specified precision.