Automattic\WooCommerce\Utilities
NumberUtil::floor
Floor a number using the built-in floor function.
Method of the class: NumberUtil{}
No Hooks.
Returns
float.
Usage
$result = NumberUtil::floor( $val ): float;
- $val(mixed) (required)
- The value to floor.
NumberUtil::floor() NumberUtil::floor code WC 10.3.6
public static function floor( $val ): float {
return floor( self::normalize( $val ) );
}