Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS Bot@lemmy.bestiver.seMB to Hacker News@lemmy.bestiver.seEnglish · 6 days ago

NaN Is Weird

brassnet.biz

external-link
message-square
4
fedilink
5
external-link

NaN Is Weird

brassnet.biz

RSS Bot@lemmy.bestiver.seMB to Hacker News@lemmy.bestiver.seEnglish · 6 days ago
message-square
4
fedilink
NaN is weird.
brassnet.biz
external-link
In which I showcase a Python oddity surrounding NaN and dictionaries.

Comments

alert-triangle
You must log in or # to comment.
  • SpaceNoodle@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 days ago

    Because NaN is purposefully not allowed to be mathematically equal to anything, but a reference to an object evaluated as such can be equivalent to itself.

  • skip0110@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 days ago

    Its not a Python oddity, its just IEEE 754.

  • HubertManne@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 days ago

    its so tastey though. That kinda burnt thing is just great.

  • hammertime@lemmy.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 days ago

    NaHaH

Hacker News@lemmy.bestiver.se

hackernews@lemmy.bestiver.se

Subscribe from Remote Instance

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: !hackernews@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

Posts from the RSS Feed of HackerNews.

The feed sometimes contains ads and posts that have been removed by the mod team at HN.

Source of the RSS Bot

Visibility: Public
globe

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

  • 234 users / day
  • 1.54K users / week
  • 3.82K users / month
  • 8.87K users / 6 months
  • 3 local subscribers
  • 4.54K subscribers
  • 31.8K Posts
  • 18.2K Comments
  • Modlog
  • mods:
  • patrick@lemmy.bestiver.se
  • RSS Bot@lemmy.bestiver.se
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org