LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2007, 12:34 PM   #1
Asuralm
LQ Newbie
 
Registered: Nov 2007
Posts: 26

Rep: Reputation: 15
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
 
Old 12-17-2007, 12:39 PM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
HUGE_VAL is what you are looking for.
 
Old 12-17-2007, 01:18 PM   #3
Asuralm
LQ Newbie
 
Registered: Nov 2007
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks mate. Merry Christmas
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C language: +/-Inf and NaN daihard Programming 10 08-06-2009 01:06 PM
BCMWL564.inf ? 144419855310001 Linux - Wireless Networking 18 12-14-2006 05:35 PM
Need Broadcom inf FinalStar Linux - Wireless Networking 1 08-09-2004 12:53 PM
Using INF Files VxJasonxV Linux - Newbie 2 05-27-2003 10:36 PM
HCF INF File VxJasonxV Linux - Hardware 2 05-24-2003 08:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration