A NaN spotted in the wild.

  • MinnesotaGoddam@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 hours 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

    • Orygin@sh.itjust.works
      link
      fedilink
      arrow-up
      25
      ·
      18 hours 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?

      • verdare@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        12
        ·
        18 hours ago

        Eh, it’s not a problem if prices are being converted to floating point at some point before being displayed.

        What you don’t want to do is store the definitive price as a floating point and perform calculations with it. I don’t see any reason to assume that’s happening here.

        • sik0fewl@piefed.ca
          link
          fedilink
          English
          arrow-up
          1
          ·
          9 hours ago

          It still makes no sense to convert to float and is likely to lead to a big at some point

  • copacetic@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    18
    ·
    20 hours 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
    6
    ·
    17 hours 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
      3
      arrow-down
      1
      ·
      16 hours ago

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

      • partofthevoice@lemmy.zip
        link
        fedilink
        arrow-up
        3
        ·
        16 hours ago

        I think they’re just e-reader technology that accepts input by RF or something. Probably has an RFID on it, so a control node just (1) scans the RFID, (2) looks up price of product for that RFID, (3) send signal back to update the display. Meaning, someone still has to walk up to the price tag in order to update it.

        My worry is live updates to pricing tags based on things like facial / behavioral recognition from the cameras in the ceiling.

        I’ve looked at these things. I don’t see any modules for wireless communication over lan, Bluetooth, or anything like that.

        • rmuk@feddit.uk
          link
          fedilink
          English
          arrow-up
          3
          ·
          14 hours ago

          See that window in the top left? It’s a combination photovoltaic cell and IR receiver, so the tag can be powered indefinitely from the shop lights and they can use ceiling-mounted IR blasters to update them. There’s no return path so the blasters just repeatedly transmit the entire inventory and price list, over and over.

  • FiniteBanjo@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    16 hours ago

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

  • kibiz0r@midwest.social
    link
    fedilink
    English
    arrow-up
    5
    ·
    20 hours 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!