Tim's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Ephera@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 months ago

IEEE 754

cdn.fosstodon.org

message-square
42
fedilink
  • cross-posted to:
  • [email protected]
851

IEEE 754

cdn.fosstodon.org

Ephera@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 months ago
message-square
42
fedilink
  • cross-posted to:
  • [email protected]

Stolen Cross-posted from here: https://fosstodon.org/@foo/113731569632505985

  • arrakark@10291998.xyz
    link
    fedilink
    English
    arrow-up
    8
    ·
    4 months ago

    IEE 754 is my favourite IEEE standard. 754 gang

    • SubArcticTundra@lemmy.ml
      link
      fedilink
      arrow-up
      6
      ·
      4 months ago

      Has anyone ever come across 8 or 16 bit floats? What were they used for?

      • wewbull@feddit.uk
        link
        fedilink
        English
        arrow-up
        4
        ·
        4 months ago

        Neural net evaluation mainly, but FP16 is used in graphics too.

      • Ephera@lemmy.mlOP
        link
        fedilink
        English
        arrow-up
        4
        ·
        4 months ago

        I found this: https://en.wikipedia.org/wiki/Minifloat

      • gandalf_der_12te@discuss.tchncs.de
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        4 months ago

        Actually, you can consider RGB values to be (triplets of) floats, too.

        Typically, one pixel takes up up to 32 bits of space, encoding Red, Green, Blue, and sometimes Alpha (opacity) values. That makes approximately 8 bits per color channel.

        Since each color can be a value between 0.0 (color is off) and 1.0 (color is on), that means every color channel is effectively a 8-bit float.

        • lennivelkant@discuss.tchncs.de
          link
          fedilink
          arrow-up
          7
          ·
          4 months ago

          Aren’t they fractions rather than floating point decimals?

        • KubeRoot@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          4
          ·
          4 months ago

          Pretty sure what you’re describing isn’t floating-point numbers, but fixed-point numbers… Which would also work just as well or better in most cases where floats are used.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 282 users / day
  • 533 users / week
  • 1.84K users / month
  • 10.5K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.12K Posts
  • 13.6K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org