• Sábado 4 de Mayo de 2024, 22:29

Autor Tema:  Infinito  (Leído 1062 veces)

jesusH

  • Miembro activo
  • **
  • Mensajes: 33
    • Ver Perfil
Infinito
« en: Martes 28 de Agosto de 2007, 07:54 »
0
Esta es la ayuda para la constante infinita:
Represents positive infinity.

"Unit
Math
Category
Arithmetic routines
Description
Use Infinity to assign a value of positive Infinity to a floating-point variable. Do not use Infinity in comparisons. To check whether a variable or expression represents infinity, use the IsInfinite function instead."

pero cuando trato de compilar el programa me presenta el el mensaje de funcion no definida aunque tengo incluido #include <Math.h>
Gracias

Ithilien

  • Miembro MUY activo
  • ***
  • Mensajes: 116
    • Ver Perfil
Re: Infinito
« Respuesta #1 en: Martes 28 de Agosto de 2007, 14:33 »
0
También puedes usar MAX_INT de math.h como infinito.

P.D.: Ya no recuerdo si era MAX_INT o INT_MAX.

Suerte!