Click here to Skip to main content
15,902,832 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Drawing a Focus rectangle. Pin
basementman12-Jun-03 6:07
basementman12-Jun-03 6:07 
GeneralRe: Drawing a Focus rectangle. Pin
Ryan Binns12-Jun-03 14:30
Ryan Binns12-Jun-03 14:30 
GeneralRe: Drawing a Focus rectangle. Pin
Joan M12-Jun-03 7:04
professionalJoan M12-Jun-03 7:04 
GeneralRe: Drawing a Focus rectangle. Pin
includeh1012-Jun-03 7:34
includeh1012-Jun-03 7:34 
GeneralProcess priority for 16bit applications Pin
Nyrup12-Jun-03 1:18
Nyrup12-Jun-03 1:18 
GeneralRe: Process priority for 16bit applications Pin
Ryan Binns12-Jun-03 1:28
Ryan Binns12-Jun-03 1:28 
GeneralRe: Process priority for 16bit applications Pin
basementman12-Jun-03 6:16
basementman12-Jun-03 6:16 
GeneralTopmost Pin
Eugene V.12-Jun-03 1:16
Eugene V.12-Jun-03 1:16 
GeneralRe: Topmost Pin
Jeremy Falcon12-Jun-03 4:08
professionalJeremy Falcon12-Jun-03 4:08 
GeneralRe: Topmost Pin
Eugene V.12-Jun-03 22:12
Eugene V.12-Jun-03 22:12 
QuestionIs alphablending possible with GDI ? Pin
Rage12-Jun-03 1:03
professionalRage12-Jun-03 1:03 
AnswerRe: Is alphablending possible with GDI ? Pin
Ryan Binns12-Jun-03 1:25
Ryan Binns12-Jun-03 1:25 
QuestionHow do I handle ... Pin
Rage12-Jun-03 1:02
professionalRage12-Jun-03 1:02 
AnswerRe: How do I handle ... Pin
BhaskarBora12-Jun-03 1:23
BhaskarBora12-Jun-03 1:23 
AnswerRe: How do I handle ... Pin
Stlan12-Jun-03 1:53
Stlan12-Jun-03 1:53 
GeneralRe: How do I handle ... Pin
Rage12-Jun-03 2:30
professionalRage12-Jun-03 2:30 
GeneralStrange Behavior of MessageLoop Pin
Muhammad Ahmed12-Jun-03 0:36
Muhammad Ahmed12-Jun-03 0:36 
GeneralSome tips on building a workspace please! Pin
tom7612-Jun-03 0:24
tom7612-Jun-03 0:24 
GeneralRe: Some tips on building a workspace please! Pin
David Crow12-Jun-03 2:55
David Crow12-Jun-03 2:55 
Generalround to next power of two Pin
peterchen11-Jun-03 23:23
peterchen11-Jun-03 23:23 
GeneralRe: round to next power of two Pin
Stlan11-Jun-03 23:53
Stlan11-Jun-03 23:53 
GeneralRe: round to next power of two Pin
cmk12-Jun-03 0:19
cmk12-Jun-03 0:19 
GeneralReal data type Pin
Jamshed Kumar Jivani11-Jun-03 22:28
sussJamshed Kumar Jivani11-Jun-03 22:28 
GeneralRe: Real data type Pin
BhaskarBora11-Jun-03 23:28
BhaskarBora11-Jun-03 23:28 
GeneralRe: Real data type Pin
RChin12-Jun-03 1:50
RChin12-Jun-03 1:50 
Data types commonly referred to as real are basically the language's way of saying it is a floating point number.
I think the term real comes from the mathematical classification of numbers:

  • Natural Numbers: 1,2,3,4,..
  • Whole Numbers: 0,1,2,3,4..
  • Integers: -2,-1,0,1,2,3,..
  • Real: 3.4, 1.0, 2.0, -5.664, 3.142
  • Complex Numbers: 5+3i


So the real data type can be used to represents numbers that can be whole (3,5,6) or a fraction of a number (2.1, 5.6, 1.333..).

In C++, real data type can be defined as a float, or a double variable. Double uses a higher level of precision than a float value.

COM Objects represents real values using the VARIANT type of
VT_R4 (float) or VT_R8 (double). VT_R4, RT_4 and float are just language specific ways of representing the same number, just expressed differently.

I'm sure there are more detailed explaination on data types on this topic, but I just wanted to give a general view, without going into to much details and specifics. Maywell be that Its not as accurate, but you should get the idea.






"..Even my comments have bugs!"

Inspired by Toni78

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.