NaN, infinity and other special numbers should be treated as numbers

1 sentence description of the problem (I was doing _________, and then __________ happened):
Use NaN in a math operator, but it is treated as text and not a number

Steps that the Hopscotch team can take to reproduce my problem every time:

  1. Set Text to (NaN + 3)

I expected this to happen:
The result would be NaN

But instead this happened:
The result was NaN3

Here’s a sweet screenshot/video:


Your username: t1

What kind of device are you using?: (Also include iOS version, and Hopscotch version)
m1 Mac (but it will happen on any device)
image

9 Likes

HS MAC? Woah!

Hope these gets fixed :infinity:

4 Likes

Hey,
I’ll get my friend @SoaringOstrich56722 to help reproduce it since he has gotten hopscotch working on his m1

3 Likes

Oh this will happen in the iOS app and explorer too, since it is the webplayer — that was just me testing while on my mac

4 Likes