That is a lot if typing
Try to tag @. omtl next time
henry I saw you edit the title.
Is NaN 0? Idk
no, NaN means “Not a Number”, it the way in FP to say: this result isn’t a number on the real number line. Like from 0 divided by 0. But FP can represent both positive and negative infinity (not sure how HS handles that though)
wait if this "It’s not a big deal " is an [OPEN] bug, can we make the broken undo button:
be open too?
having a headache with 9999999999999999999999999
Yes it is considered 0, since NaN is not convertable to an integer, so it’s 0 by default.
@Cutelittlekittycat sorry for my confusing answer- that HS shows NaN as 0 is what I should have figured out and answered with.
@JonnyGamer do you really want HS to have different numeric types? It doesn’t have any types now, including string vs number, which causes some surprises but basically woks. Types can add extra confusion for new learners, and adding types will entail changes in the UI that have no precedent, as far as I can tell.
I think data types are in the roadmap.
That’s a good point that it may not be the friendliest for new learners.
It will be interesting to see how THT creates a GUI for a typed HS.
But srsly is fixing the undo button not on the roadmap?
NaN (Not a Number) can also be known as Infinity or Undefined.
It’s what you get when you perform arithmetic operations to values that aren’t numbers
It’s has a type of number because even if you are trying to divide 39 by “we’re no strangers to love” it still has to return a number, so it returns NaN
This method was yoinked from lower level languages.
I’m not sure whether hs doesn’t use big numbers but it could be because of that
console.log(typeof 1n)//supposed to log "bigint" but for some reason gives me an error console.log(typeof BigInt("1"))//works
Oh wait this isn’t a bug with the player
I think the editor was written in objective C
computers are bad at big/precise numbers idk
Nice use of Rick Roll, lol.
I don’t think you can get HS to store an Infinity either, another special floating point value.
Actually I remember from really long ago that I kept pressing 9 on a keypad I made and at one point the display suddenly showed “infinity”