Function formatQuantity

  • Formats a number (or string that appears to be a number) as one would see it written in imperial measurements, e.g. "1 1/2" instead of "1.5". To use vulgar fraction characters like "½", pass true as the second argument. For other options see FormatQuantityOptions.

    Parameters

    Returns null | string

Generated using TypeDoc