LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to define a INF in c++ (https://www.linuxquestions.org/questions/programming-9/how-to-define-a-inf-in-c-607388/)

Asuralm 12-17-2007 12:34 PM

How to define a INF in c++
 
Hi all:

I need to define a variable with positive INF value, i.e. any double number is less than the INF. How can I do that? Anybody get an idea?


Thanks

tuxdev 12-17-2007 12:39 PM

HUGE_VAL is what you are looking for.

Asuralm 12-17-2007 01:18 PM

Thanks mate. Merry Christmas


All times are GMT -5. The time now is 08:27 PM.