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

Offline vipinmishraji2

  • Single posting newcomer
  • *
  • Posts: 1
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: 5943
    • 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 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org