• ZkhqrD5o@lemmy.world
    link
    fedilink
    English
    arrow-up
    57
    arrow-down
    1
    ·
    edit-2
    3 days ago

    R2 = 0.11

    Edit: tried with R<sup>2</sup> but it didn’t work. :(

    Edit 02: thanks to @jaennaet for educating me on proper syntax.

    • Jännät@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      6
      ·
      3 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