Campfyre
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Ephera@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year ago

IEEE 754

cdn.fosstodon.org

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

IEEE 754

cdn.fosstodon.org

Ephera@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 1 year 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
    ·
    1 year ago

    IEE 754 is my favourite IEEE standard. 754 gang

    • SubArcticTundra@lemmy.ml
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

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

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

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

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

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

      • gandalf_der_12te@discuss.tchncs.de
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 year 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
          ·
          1 year ago

          Aren’t they fractions rather than floating point decimals?

        • KubeRoot@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 year 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.

  • 262 users / day
  • 764 users / week
  • 1.62K users / month
  • 6.59K users / 6 months
  • 2 local subscribers
  • 39.5K subscribers
  • 1.44K Posts
  • 35.5K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org