private static function Interval::convertNumber in Plug 7
1 call to Interval::convertNumber()
- Interval::test in lib/
Symfony/ translation/ Interval.php - Tests if the given number is in the math interval.
File
- lib/
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;
}