Function formatNumberAsUnicodeSuperscript

  • Format a number to unicode superscript. For example, 10 -> ¹⁰

    All values behind decimal point are ignored!

    Please note that Unicode superscript does not necessarily look proper on all fonts. The visual result is heavily font specific.

    Parameters

    • value: number

    Returns string