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

@arrakark@10291998.xyz
link
fedilink
English
82M

IEE 754 is my favourite IEEE standard. 754 gang

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

Ephera
creator
link
fedilink
English
42M

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.

Aren’t they fractions rather than floating point decimals?

KubeRoot
link
fedilink
English
42M

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.

@wewbull@feddit.uk
link
fedilink
English
42M

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

Create a post

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.
  • 1 user online
  • 38 users / day
  • 116 users / week
  • 385 users / month
  • 2.11K users / 6 months
  • 1 subscriber
  • 1.7K Posts
  • 37.3K Comments
  • Modlog