User forums > Using Code::Blocks

Difference between precision of Float and Double

(1/1)

vipinmishraji2:
I am getting the same precision value means 6 digit after point.
float a=45.123456789;
double d=45.123456789;
same answer
45.123456;

Why?
please help
Thanks  in advance

stahta01:
Please read and follow the rules for this website.

http://forums.codeblocks.org/index.php/topic,9996.0.html

Navigation

[0] Message Index

Go to full version