private static function FileValidator::moreDecimalsThan in Plug 7
1 call to FileValidator::moreDecimalsThan()
- FileValidator::factorizeSizes in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ FileValidator.php - Convert the limit to the smallest possible number (i.e. try "MB", then "kB", then "bytes")
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ FileValidator.php, line 199
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));
}