A NaN spotted in the wild.

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

      • verdare@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        13
        ·
        5 months 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
          3
          ·
          5 months ago

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

  • NihilsineNefas@slrpnk.net
    link
    fedilink
    arrow-up
    32
    ·
    5 months ago

    Oh fucking joyous, automatic surge pricing labels have finally hit the UK, can’t wait for it to be tied to your wifi shadow and device biometrics so that supermarkets can charge people more for daily goods than their neighbours due to their credit/social/political standing.

    I mean “Haha that means it’s free, right? Lol.”

    • zikzak025@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      5 months ago

      Only a matter of time before a store picks up data on certain people’s net worth and suddenly all the price tags double when they walk down an aisle.

      I guess that also sets up the potential side business of paying poorer people to do shopping for you. Well, I mean, I guess that already exists too.

      • NihilsineNefas@slrpnk.net
        link
        fedilink
        arrow-up
        7
        ·
        5 months ago

        I guess that also sets up the potential side business of paying poorer people to do shopping for you

        Scamazon, doordash, ubereats, any of those “go buy my groceries, and bring them to my door lest I suffer the fate of seeing a peasant in any other role than serving me.” companies count as exactly that.

        Just ask a millionaire what the cost of a loaf of bread is, or a 2kg bag of potatoes.

    • Psythik@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      5 months ago

      It already is, which is why I turn off all radios on my phone and put it in airplane mode when I go grocery shopping now. But even then, I’m pretty sure they can still track the beacon signal wifi and BT give off even when disabled.

    • Dave@lemmy.nz
      link
      fedilink
      arrow-up
      3
      ·
      5 months ago

      Sorry, zero is a number, so it can’t be free. One soul please, or alternatively one upper and one lower limb.

  • copacetic@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    19
    ·
    5 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
    ·
    5 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
      3
      arrow-down
      1
      ·
      5 months 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
        ·
        5 months 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
          5
          ·
          5 months 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
    4
    ·
    5 months ago

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

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