private static function Interval::convertNumber in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/translation/Interval.php \Symfony\Component\Translation\Interval::convertNumber()
1 call to Interval::convertNumber()
- Interval::test in vendor/
symfony/ translation/ Interval.php - Tests if the given number is in the math interval.
File
- vendor/
symfony/ translation/ Interval.php, line 97
Class
- Interval
- Tests if a given number belongs to a given math interval.
Namespace
Symfony\Component\TranslationCode
private static function convertNumber($number) {
if ('-Inf' === $number) {
return log(0);
}
elseif ('+Inf' === $number || 'Inf' === $number) {
return -log(0);
}
return (double) $number;
}