MCPcopy Index your code
hub / github.com/nodejs/node / percentileBigInt

Method percentileBigInt

lib/internal/histogram.js:203–211  ·  view source on GitHub ↗

* @param {number} percentile * @returns {bigint}

(percentile)

Source from the content-addressed store, hash-verified

201 * @returns {bigint}
202 */
203 percentileBigInt(percentile) {
204 if (!isHistogram(this))
205 throw new ERR_INVALID_THIS('Histogram');
206 validateNumber(percentile, 'percentile');
207 if (NumberIsNaN(percentile) || percentile <= 0 || percentile > 100)
208 throw new ERR_OUT_OF_RANGE('percentile', '> 0 && <= 100', percentile);
209
210 return this[kHandle]?.percentileBigInt(percentile);
211 }
212
213 /**
214 * @readonly

Callers 1

Calls 1

isHistogramFunction · 0.85

Tested by

no test coverage detected