Automattic\WooCommerce\Internal\Admin\Settings

SettingsUISchema::decimal_string_is_zero │ private static │ WC 1.0

Whether a decimal numeric string represents zero.

Метод класса: SettingsUISchema{}

Хуков нет.

Возвращает

bool.

Использование

$result = SettingsUISchema::decimal_string_is_zero( $value ): bool;
$value(строка) (обязательный)
Candidate number.

Код SettingsUISchema::decimal_string_is_zero() WC 11.2.2

private static function decimal_string_is_zero( string $value ): bool {
	$mantissa = substr( $value, 0, strcspn( $value, 'eE' ) );
	return '' === trim( $mantissa, '+-0.' );
}