public static function float($value, $message = null, $propertyPath = null)
{
if (!is_float($value)) {
$message = sprintf($message ?: 'Value "%s" is not a float.', static::stringify($value));
throw static::createException($value, $message, static::INVALID_FLOAT, $propertyPath);
}
return true;
}