Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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

GeneralRe: Real data type Pin
David Crow12-Jun-03 2:48
David Crow12-Jun-03 2:48 
GeneralUrgent help needed Pin
vcseeker11-Jun-03 22:11
vcseeker11-Jun-03 22:11 
GeneralRe: Urgent help needed Pin
David Crow12-Jun-03 2:50
David Crow12-Jun-03 2:50 
GeneralRe: Urgent help needed Pin
basementman12-Jun-03 6:20
basementman12-Jun-03 6:20 
Generalerror C2065: 'GET_X_LPARAM' : undeclared identifier Pin
untwisted11-Jun-03 21:37
untwisted11-Jun-03 21:37 
GeneralRe: error C2065: 'GET_X_LPARAM' : undeclared identifier Pin
kochhar11-Jun-03 21:50
kochhar11-Jun-03 21:50 
GeneralRe: error C2065: 'GET_X_LPARAM' : undeclared identifier Pin
untwisted11-Jun-03 22:03
untwisted11-Jun-03 22:03 
GeneralRe: error C2065: 'GET_X_LPARAM' : undeclared identifier Pin
peterchen11-Jun-03 23:27
peterchen11-Jun-03 23:27 
GeneralRe: error C2065: 'GET_X_LPARAM' : undeclared identifier Pin
Rage12-Jun-03 0:59
professionalRage12-Jun-03 0:59 
GeneralRe: error C2065: 'GET_X_LPARAM' : undeclared identifier Pin
peterchen12-Jun-03 1:34
peterchen12-Jun-03 1:34 
GeneralAbout HDN_DIVIDERDBLCLICK Pin
anffernee11-Jun-03 19:58
anffernee11-Jun-03 19:58 
GeneralRe: About HDN_DIVIDERDBLCLICK Pin
basementman12-Jun-03 6:23
basementman12-Jun-03 6:23 
Generalxp look problems Pin
Tibor Blazko11-Jun-03 19:41
Tibor Blazko11-Jun-03 19:41 
Questioncontainers and inheritance??? Pin
Somaa11-Jun-03 19:14
Somaa11-Jun-03 19:14 
AnswerRe: containers and inheritance??? Pin
valikac11-Jun-03 19:31
valikac11-Jun-03 19:31 
GeneralRe: containers and inheritance??? Pin
Somaa12-Jun-03 4:54
Somaa12-Jun-03 4:54 
GeneralRe: containers and inheritance??? Pin
valikac12-Jun-03 6:33
valikac12-Jun-03 6:33 

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.