Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-replace-private-preview-badge-man.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
quantileBFloat16
Introduced in: v21.7.0 Computes an approximate quantile of a sample consisting of bfloat16 numbers.bfloat16 is a floating-point data type with 1 sign bit, 8 exponent bits and 7 fraction bits.
The function converts input values to 32-bit floats and takes the most significant 16 bits. Then it calculates bfloat16 quantile value and converts the result to a 64-bit float by appending zero bits.
The function is a fast quantile estimator with a relative error no more than 0.390625%.
Syntax
medianBFloat16
Parameters
level— Optional. Level of quantile. Possible values are in the range from 0 to 1. Default value: 0.5.Float*
Float64
Examples
Computing quantile with bfloat16
Query
Response