A NaN spotted in the wild.

    • Orygin@sh.itjust.works
      link
      fedilink
      arrow-up
      22
      ·
      3 months ago

      NaN are not exclusive to JavaScript, it’s more scary that they’re using floating point numbers for monetary value.
      If you buy something at -Inf, do they empty the business bank account into yours?

  • copacetic@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    14
    ·
    3 months ago

    “I have five pounds. Is that enough?”

    “No.”

    “It costs more than five pounds?”

    “No.”

    “How much do I have to pay?”

    “This is NaN pounds.”

    “That means it costs more than five pounds?”

    “No.”

    “It costs less than five pounds?”

    “No.”

    “Exactly five pounds?”

    “No.”

    leaves the shop

    (Remember, comparison with NaN is always false)

  • megopie@beehaw.org
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 months ago

    IT DOESN’T NEED TO BE COMPUTER! IT IS A PRICE TAG! THERE IS NO REASON IT SHOULD BE ABLE TO RUN DOOM!

    • FiniteBanjo@programming.dev
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      3 months ago

      Technically, these digital tags are being developed to automatically update price from a database, so there is a computer somewhere.

  • kibiz0r@midwest.social
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 months ago

    Plot twist: it’s accurate, because the price is not a number but in fact your very soul.

    The folks who said barcodes were the mark of the beast were so close!

  • MinnesotaGoddam@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 months ago

    Oh, I don’t have a Nan I have a Gran but she’s for sale too how much you offering.

    COCONUT WAFERS they better be organic

  • FiniteBanjo@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    3 months ago

    Do you accept ⯎̷̨̩̯͎͕̮͎͈̞͙̠̽̈́͂͊͗̆͗̒̓͠͠ͅ⥢̴̛̠̩͑̂ⵅ̴̨̨͍͎̄̌͂̐͗͂̄̓́̽͊͐̆̍͘⊣̸̢͙͈̠̗̬͎͎̗̖̓͂͌͆͑̔̔ͅⅆ̸̧̜̲̙̱̱̙̦̗̺́͗◰̷̛͙͓̹͕̯̘̝̌̈́̍͐̌͘̕̕⽅̶̠͔̼̙̠̻̖͕̻͔̗͗̎́̈́̃̀̈́̽̽̅͌͜⸦̴͎͚̦͖̜̞͙̲̑̕?

  • lIlIlIlIlIlIl@lemmy.world
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    3 months ago

    Push a pen through each one of those eink displays - they’re not cheap.

    TikTok challenge: each eink price tag is worth one point - GO!