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 The allowed variation.
Returns:
  • (bool) Whether the numbers match whithin the specified precision.
Defined at:

Description

Check 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_nav_menu_max_depth

Top Google Results

User discussions

wpseek mobile