Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: vipinmishraji2 on October 10, 2017, 03:46:37 pm

Title: Difference between precision of Float and Double
Post by: vipinmishraji2 on October 10, 2017, 03:46:37 pm
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
Title: Re: Difference between precision of Float and Double
Post by: stahta01 on October 10, 2017, 04:16:25 pm
Please read and follow the rules for this website.

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