Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

237
Views
Infinity - number = infinity

In javascript Infinity - 100 results in Infinity which makes sense, but the resulted Infinity does not appear to be less than the initial Infinity like in real math.

I am trying to sort some array, and items from array that don't have a certain property are assigned a default Infinity value, then sorting should fallback to Infinity minus a different property. The problem is that this subtraction does not produce different Infinity values.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You don't have to think of Infinity as a number. Infinity minus a finite number is still (the same) Infinity, it's math theory. That's why you get that result.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!