Author Topic: Difference between precision of Float and Double  (Read 3885 times)

vipinmishraji2

  • Guest
Difference between precision of Float and Double
« 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Difference between precision of Float and Double
« Reply #1 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org