Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

239
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda