dormi.zone
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Ephera to Programmer Humor@lemmy.mlEnglish • 4 months ago

IEEE 754

cdn.fosstodon.org

message-square
42
fedilink
  • cross-posted to:
  • science_memes@mander.xyz
856

IEEE 754

cdn.fosstodon.org

Ephera to Programmer Humor@lemmy.mlEnglish • 4 months ago
message-square
42
fedilink
  • cross-posted to:
  • science_memes@mander.xyz

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

  • @arrakark@10291998.xyz
    link
    fedilink
    English
    8•4 months ago

    IEE 754 is my favourite IEEE standard. 754 gang

    • @SubArcticTundra@lemmy.ml
      link
      fedilink
      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
        4•4 months ago

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

      • EpheraOP
        link
        fedilink
        English
        4•4 months ago

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

      • @gandalf_der_12te@discuss.tchncs.de
        link
        fedilink
        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
          7•4 months ago

          Aren’t they fractions rather than floating point decimals?

        • KubeRoot
          link
          fedilink
          English
          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.
  • 437 users / day
  • 1.7K users / week
  • 2.31K users / month
  • 10K users / 6 months
  • 35.7K subscribers
  • 1.71K Posts
  • 37.6K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • BE: 0.19.3
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org