function GPBUtil::checkDouble
19 calls to GPBUtil::checkDouble()
- AnyValue::setDoubleValue in vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Common/ V1/ AnyValue.php - Generated from protobuf field <code>double double_value = 4;</code>
- DoubleValue::setValue in vendor/
google/ protobuf/ src/ Google/ Protobuf/ DoubleValue.php - The double value.
- Exemplar::setAsDouble in vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ Exemplar.php - Generated from protobuf field <code>double as_double = 3;</code>
- ExponentialHistogramDataPoint::setMax in vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ ExponentialHistogramDataPoint.php - max is the maximum value over (start_time, end_time].
- ExponentialHistogramDataPoint::setMin in vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ ExponentialHistogramDataPoint.php - min is the minimum value over (start_time, end_time].
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GPBUtil.php, line 155
Class
Namespace
Google\Protobuf\InternalCode
public static function checkDouble(&$var) {
if (is_float($var) || is_numeric($var)) {
$var = floatval($var);
}
else {
throw new \Exception("Expect float.");
}
}