• Quetzalcutlass@lemmy.world
    link
    fedilink
    English
    arrow-up
    27
    ·
    edit-2
    2 months ago

    I feel obligated to post a link to this excellent (albeit incomplete) writeup of posits and unums, which can more accurately represent common fractions in memory at the same (or lower) bit size compared to traditional floating point.

    Said page also includes the single best slightly-above-entry-level explanation of how floating point works I’ve ever seen.

  • yucandu@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 months ago

    I had to just emulate floating points to save pulling in the giant print float library in stm32 to save flash memory. And then I learned that’s what all the pros do IRL anyway.

    • VinegarChunks@lemmus.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 months ago

      I am hard pressed to find anyone irl who would be impressed by this but I made a spreadsheet that converts hexadecimal into float using only standard excel formulas.

    • Quetzalcutlass@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 months ago

      Ah, Apache Commons: for those who felt Java’s standard library wasn’t bloated enough already.

      (I kid, I kid, though it was always funny just how many basic features seemed to be missing from Java back in the day despite its massive bundled library, leading to seemingly every major project adding Commons as a dependency. Not as much as thing these days AFAIK)