MAIDR JavaScript API
    Preparing search index...

    Function percentileLabel

    • Names a quantile by its percentile, which is the number a reader can place.

      Trailing zeros are trimmed rather than fixed, so the common rungs read as "25th" and "75th" rather than "25.0th" while a deep one still reads as "0.39th" instead of rounding to "0th" -- and rounding a deep rung to zero would name several different rungs identically, which is exactly the part of the distribution a letter-value plot exists to separate.

      Parameters

      • fraction: number

        A quantile, from 0 to 1

      Returns string

      Its percentile, as text