public static function compare_floats( $float1, $float2, $operator )
Reliably compare floats.
Source: common.php:6885
Parameters
| Name | Type | Default | Description |
|---|
$float1 | float | | |
$float2 | float | | |
$operator | string | | Supports: '<', '<=', '>', '>=', '==', '=', '!=' |
Returns