Programación General > C++ Builder

 Infinito

(1/1)

jesusH:
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:
También puedes usar MAX_INT de math.h como infinito.

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

Suerte!

Navegación

[0] Índice de Mensajes

Ir a la versión completa