ts-playground
    Preparing search index...

    Function map0InfTo10WithFraction

    • Map a value from the interval [0, +∞) to the interval [1, 0] using a fraction.

      Parameters

      • x: number

        in the range [0, +∞)

      Returns number

      number in the range [0, 1] decaying from 1 to 0 as x increases.