# C Programming - Declarations and Initializations - Discussion

Discussion Forum : Declarations and Initializations - General Questions (Q.No. 6)
6.
By default a real number is treated as a
float
double
long double
far double
Explanation:

In computing, 'real number' often refers to non-complex floating-point numbers. It include both rational numbers, such as 42 and 3/4, and irrational numbers such as pi = 3.14159265...

When the accuracy of the floating point number is insufficient, we can use the double to define the number. The double is same as float but with longer precision and takes double space (8 bytes) than float.

To extend the precision further we can use long double which occupies 10 bytes of memory space.

Discussion:
50 comments Page 5 of 5.

What is the use of far double?

But real constants are called as floating point constants then how?

Shakil Chand said:   1 decade ago
@sampavi

Real number means floating point numbers. For eg. 2.5, 20.5 etc.

The numbers which are in set are 1, 2, 3. 1/2, 1/3, -. -1, -2. Etc are real nos.

By default its datatype is considered as doubled.

@Cheluvarajesh

a==a or b==b means it comes I love you..

OR

a==b or b==a means it comes I hate you..

It checks the var equalization.

I have 2 questions

1. What you mean by double precision ?
2. Consider the following code

void main()
{
float a=1.1;
double b=1.1;

if(a==b)
{
printf(" I love you\n");
}
else
{
printf(" I hate you\n");
}
}

If you execute this code you will get output as I hate you..
How this is happening ?

1,2,3,4,5,6,1/2, 3/4 these are all real. The square root of negative is an unreal number.