you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 11 months ago

If this is JavaScript, it would have a value of -0, which is actually valid and works the same as normal zero thanks to type coercion. I think the only difference is some methods that detect if a number is negative will return true instead of false, but otherwise, JS treats -0 the same way as 0

  • source
  • parent