• Jännät@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    6
    ·
    4 days ago

    You have to surround the 2 with ^s:

    R^2^ = 0.11

    R2 = 0.11

    Note that this’ll bork if you put spaces between the carets: ^2 2^ gives you ^2 2^

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 days ago

      I know I’m late, but you can also use:
      R² = 0.11

      Someone said it messes with screen-readers, but when I tried, everything messed with screen-readers, so I don’t see much of a difference.

      • Jännät@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 days ago

        I’d assume it’s easier for people to get their keyboards to cough up a couple of carets compared to Unicode superscript characters, though