Lines Matching defs:number
462 throw new GPBDecodeException("Duration number too large.");
465 throw new GPBDecodeException("Duration number too small.");
480 $number = substr($value, 0, -1);
481 if (bccomp($number, "315576000001") != -1) {
482 throw new GPBDecodeException("Duration number too large.");
484 if (bccomp($number, "-315576000001") != 1) {
485 throw new GPBDecodeException("Duration number too small.");
487 $pos = strrpos($number, ".");
489 $seconds = substr($number, 0, $pos);
491 $nanos = bcmul("0" . substr($number, $pos), -1000000000);
493 $nanos = bcmul("0" . substr($number, $pos), 1000000000);
496 $seconds = $number;
508 throw new GPBDecodeException('Duration number too large.');
511 throw new GPBDecodeException('Duration number too small.');