Original post: social.coop (Mastodon)

you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 1 year ago (5 children)

The AI bubble cannot burst soon enough.

Too Big To Fail. Sorry. 1+2+3=15 now.

  • source
  • parent
  • hideshow 5 child comments
  • [–] 4 points 1 year ago* (3 children)

    "1"+(2+3) is "15" in JavaScript.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 year ago (2 children)

    I'm wondering if this is a sleight-of-hand trick by the poster, then.

    If they typed the "1" field to Text and left the 2 and 3 as numeric, then ran Copilot on that. In that case, its more an indictment of Excel than Copilot, strictly speaking. The screen doesn't make clear which cells are numbers and which are text.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 year ago (1 child)

    I don't think there's an explanation that doesn't make this copilot's fault. Honestly JavaScript shouldn't allow math between numbers and strings in the first place. "1" + 1 is not a number, and there's already a type for that: NaN

    Regardless, the sum should be 5 if the first cell is text, so it's incorrect either way.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    Honestly JavaScript shouldn’t allow math between numbers and strings in the first place.

    You can explicitly type values in more recent versions of JavaScript to avoid this, if you really don't want to let concatenation be the default. So, again, this feels like an oversight in integration rather than strict formal logic.

  • source
  • parent