0

Why is float called single precision floating point and double as double precision floating point?

3
Contributors
3
Replies
5
Views
6 Years
Discussion Span
Last Post by Ancient Dragon
0

why is the sky blue? doubles have more precision than floats, and long doubles may or may not have more precision than doubles (compiler dependent).

Edited by Ancient Dragon: n/a

0

It is not Compiler Dependent but the size for double is actually double than the float so the number of digits in the double can be more than the float.

0

I didn't say floats and doubles were compiler depedent. I said long doubles were. Some compilers support long doubles as twice the size as doubles while other compilers such as vc++ 2010 (and earlier versions) treat them the same as doubles.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.