Click here to Skip to main content
15,899,124 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Inter-process Communication Question Pin
Peter Weyzen17-May-06 16:07
Peter Weyzen17-May-06 16:07 
AnswerRe: Inter-process Communication Question Pin
Stephen Hewitt17-May-06 18:06
Stephen Hewitt17-May-06 18:06 
GeneralRe: Inter-process Communication Question Pin
softwaremonkey18-May-06 2:05
softwaremonkey18-May-06 2:05 
QuestionSetting a double to infinity Pin
Jader8917-May-06 10:33
Jader8917-May-06 10:33 
AnswerRe: Setting a double to infinity Pin
George L. Jackson17-May-06 10:46
George L. Jackson17-May-06 10:46 
AnswerRe: Setting a double to infinity Pin
Christian Graus17-May-06 11:20
protectorChristian Graus17-May-06 11:20 
AnswerRe: Setting a double to infinity Pin
Eric Dahlvang17-May-06 12:00
Eric Dahlvang17-May-06 12:00 
AnswerRe: Setting a double to infinity Pin
Ryan Binns17-May-06 18:42
Ryan Binns17-May-06 18:42 
The easiest way is to perform a divide by 0 with floating point exceptions disabled - 1.0 / 0.0 will do the trick. However, note that most of the math functions don't work with infinite numbers. You can disable floating point exceptions using _controlfp().

Obviously, use -1.0 / 0.0 if you want -ve infinity.

BTW, you can represent infinity with a float or a double, despite what others have said... See here[^]

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

AnswerRe: Setting a double to infinity Pin
Steve Echols17-May-06 19:37
Steve Echols17-May-06 19:37 
Questionread a name .left .right Pin
Immunity1817-May-06 10:23
Immunity1817-May-06 10:23 
AnswerRe: read a name .left .right Pin
Chris Losinger17-May-06 10:26
professionalChris Losinger17-May-06 10:26 
GeneralRe: read a name .left .right Pin
Immunity1817-May-06 10:31
Immunity1817-May-06 10:31 
GeneralRe: read a name .left .right Pin
Chris Losinger17-May-06 10:35
professionalChris Losinger17-May-06 10:35 
GeneralRe: read a name .left .right Pin
Immunity1817-May-06 10:39
Immunity1817-May-06 10:39 
QuestionDeclarations Pin
koumodaki17-May-06 8:24
koumodaki17-May-06 8:24 
AnswerRe: Declarations Pin
David Crow17-May-06 10:06
David Crow17-May-06 10:06 
Questionhow to detect endianness of a machine ? Pin
big_denny_20017-May-06 6:50
big_denny_20017-May-06 6:50 
AnswerRe: how to detect endianness of a machine ? Pin
Chris Losinger17-May-06 7:20
professionalChris Losinger17-May-06 7:20 
GeneralRe: how to detect endianness of a machine ? Pin
Jörgen Sigvardsson17-May-06 9:04
Jörgen Sigvardsson17-May-06 9:04 
GeneralRe: how to detect endianness of a machine ? Pin
Chris Losinger17-May-06 9:25
professionalChris Losinger17-May-06 9:25 
GeneralRe: how to detect endianness of a machine ? Pin
Jörgen Sigvardsson17-May-06 9:39
Jörgen Sigvardsson17-May-06 9:39 
GeneralRe: how to detect endianness of a machine ? Pin
Chris Losinger17-May-06 9:47
professionalChris Losinger17-May-06 9:47 
GeneralRe: how to detect endianness of a machine ? Pin
Trollslayer17-May-06 10:02
mentorTrollslayer17-May-06 10:02 
GeneralRe: how to detect endianness of a machine ? Pin
Jörgen Sigvardsson17-May-06 10:04
Jörgen Sigvardsson17-May-06 10:04 
GeneralRe: how to detect endianness of a machine ? Pin
cmk17-May-06 10:54
cmk17-May-06 10:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.