News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Difference between precision of Float and Double

Started by vipinmishraji2, October 10, 2017, 03:46:37 PM

Previous topic - Next topic

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

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]