C Programming - Floating Point Issues - Discussion

Discussion Forum : Floating Point Issues - General Questions (Q.No. 2)
2.
What will you do to treat the constant 3.14 as a long double?
use 3.14LD
use 3.14L
use 3.14DL
use 3.14LF
Answer: Option
Explanation:

Given 3.14 is a double constant.

To specify 3.14 as long double, we have to add L to the 3.14. (i.e 3.14L)

Discussion:
15 comments Page 2 of 2.

Rathisha said:   7 years ago
What is difference between float and double?

Mohanraj said:   1 decade ago
Please explain how 3.14 is treat as double?

Rajesh said:   1 decade ago
For the long double LF is used in c.

Subhalaxmi said:   1 decade ago
What is the use of LD & DL?

Gyan said:   10 years ago
Please briefly explain.


Post your comments here:

Your comments will be displayed after verification.