You are here

private static function FileValidator::moreDecimalsThan in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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\Constraints

Code

private static function moreDecimalsThan($double, $numberOfDecimals) {
  return strlen((string) $double) > strlen(round($double, $numberOfDecimals));
}