• Solemarc@lemmy.world
    link
    fedilink
    arrow-up
    32
    arrow-down
    1
    ·
    edit-2
    2 days ago

    My opinion on this will always be that there are only 2 valid answers;

    0-255 or 0-1

    Either a u8 or a float.

    • ferret@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      10
      ·
      2 days ago

      I thought the same thing too, but the article doesn’t disagree. Article is actually about converting between the two. It’s an interesting read, I encourage it.