NerdHouse Social
  • Communities
  • Create Post
  • Create Community
  • 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
848

IEEE 754

cdn.fosstodon.org

Ephera@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 4 months ago
message-square
42
fedilink

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

  • 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?

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

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

    • wewbull@feddit.uk
      link
      fedilink
      English
      arrow-up
      4
      ·
      4 months 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
      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: !programmerhumor@lemmy.ml

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.

  • 303 users / day
  • 512 users / week
  • 1.84K users / month
  • 10.5K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.72K Posts
  • 37.6K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: 0.19.7
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org