private static function FileValidator::moreDecimalsThan in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Constraints/FileValidator.php \Symfony\Component\Validator\Constraints\FileValidator::moreDecimalsThan()
1 call to FileValidator::moreDecimalsThan()
- FileValidator::factorizeSizes in vendor/
symfony/ validator/ Constraints/ FileValidator.php - Convert the limit to the smallest possible number (i.e. try "MB", then "kB", then "bytes").
File
- vendor/
symfony/ validator/ Constraints/ FileValidator.php, line 288
Class
- FileValidator
- @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\Validator\ConstraintsCode
private static function moreDecimalsThan($double, $numberOfDecimals) {
return strlen((string) $double) > strlen(round($double, $numberOfDecimals));
}