<PackageReference Include="OpenTelemetry" Version="1.15.2" />

OpenTelemetry.Metrics.HistogramExplicitBounds

public double[] Bounds { get; }

public double[] DisplayBounds { get; }

Gets the cleaned display bounds for export/serialization. When non-null, exporters should use these values instead of Bounds for displaying bucket boundaries. This is used to fix float-to-double precision artifacts (e.g., 0.025 instead of 0.02500000037252903).

public HistogramExplicitBounds(double[] bounds, double[] displayBounds = null)

public int FindBucketIndex(double value)