okr765
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
io@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 8 hours ago

NaN Posting

piefed.cdn.blahaj.zone

message-square
9
fedilink
285

NaN Posting

piefed.cdn.blahaj.zone

io@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 8 hours ago
message-square
9
fedilink

https://mastodon.well.com/@rk/115533116416499294

alert-triangle
You must log in or register to comment.
  • marcos@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 hours ago

    At least NaNs are different from each other and themselves.

    SQL’s null would like a word here.

  • ArbitraryValue@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    45
    ·
    edit-2
    7 hours ago

    Things that are numbers:

    • a memory address
    • the letter B
    • an error encountered when trying to open a file
    • the concept of being false, as opposed to being true

    Things that are not numbers:

    • this particular floating-point number
    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      2 hours ago
      >> typeof(NaN)
      <- "number"
      

      It’s valid for C too, but it will be either a double or a float.

    • Arghblarg@lemmy.ca
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      7 hours ago

      Things that are numbers

      …

      the concept of being false, as opposed to being true

      ? If your’re referring to the C language convention that anything nonzero is ‘true’… false itself is exactly zero. Zero is a number. Perhaps I miss something here?

      • ArbitraryValue@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        18
        ·
        7 hours ago

        That’s what I’m saying.

        • Arghblarg@lemmy.ca
          link
          fedilink
          arrow-up
          4
          ·
          6 hours ago

          Ah. OK. I re-read your comment :) Silly me.

  • 🇰 🌀 🇱 🇦 🇳 🇦 🇰 🇮 @pawb.social
    link
    fedilink
    English
    arrow-up
    18
    ·
    7 hours ago

    accidentally double types the a and suddenly his program is baking flatbread

  • fibojoly@sh.itjust.works
    link
    fedilink
    arrow-up
    8
    ·
    7 hours ago

    That makes sense though. Two things can be “not number” yet be different.

    • Cevilia (she/they/…)@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 hours ago

      But two things cannot be “not number” and be the same.

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 1.54K users / day
  • 3.93K users / week
  • 8.21K users / month
  • 19K users / 6 months
  • 1 local subscriber
  • 27.3K subscribers
  • 1.68K Posts
  • 54.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org