Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS BotMB to Hacker NewsEnglish · tre månader sedan

NaN Is Weird

brassnet.biz

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

NaN Is Weird

brassnet.biz

RSS BotMB to Hacker NewsEnglish · tre månader sedan
message-square
4
link
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
    ·
    tre månader sedan

    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.

  • HubertManne@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    tre månader sedan

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

  • skip0110@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    tre månader sedan

    Its not a Python oddity, its just IEEE 754.

  • hammertime@lemmy.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    tre månader sedan

    NaHaH

Hacker News

hackernews

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.

  • 511 users / day
  • 1.93K users / week
  • 4.32K users / month
  • 9.95K users / 6 months
  • 2 local subscribers
  • 4.95K subscribers
  • 52.4K Posts
  • 28.1K Comments
  • Modlog
  • mods:
  • patrick
  • RSS Bot
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org