@get-milano/core 2.1.0
    Preparing search index...

    Function formatDouble

    • The Milano double format. Non-finite values are nan, inf, -inf. Finite values use the shortest round-trip digits, rendered as plain decimal (integral values keeping one fractional digit) while the normalized exponent is within [-4, 15], and otherwise as scientific d[.ddd]e[-]NN: lowercase e, no plus sign, no zero padding.

      JavaScript's own toString is shortest round-trip, so it supplies the digits; everything about their presentation is re-derived here.

      Parameters

      • value: number

      Returns string