Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GPBUtil.php

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].

... See full list

File

vendor/google/protobuf/src/Google/Protobuf/Internal/GPBUtil.php, line 155

Class

GPBUtil

Namespace

Google\Protobuf\Internal

Code

public static function checkDouble(&$var) {
    if (is_float($var) || is_numeric($var)) {
        $var = floatval($var);
    }
    else {
        throw new \Exception("Expect float.");
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal