wp_fuzzy_number_match


wp_fuzzy_number_match ( $expected, $actual, $precision = 1 )

Parameters:
  • (int|float) expected The expected value.
  • (int|float) actual The actual number.
  • (int|float) precision Optional. The allowed variation. Default 1.
Returns:
  • (bool) Whether the numbers match within the specified precision.
Defined at:

Description

Checks if two numbers are nearly the same.This is similar to using `round()` but the precision is more fine-grained.

Related Functions

wp_notify_moderator, wp_ajax_oembed_cache, wp_insert_attachment, wp_ajax_query_attachments, wp_lazyload_term_meta

Top Google Results

User discussions

wpseek mobile