Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Difference between precision of Float and Double
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Difference between precision of Float and Double (Read 3892 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
Logged
stahta01
Lives here!
Posts: 7592
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
Logged
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
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
Difference between precision of Float and Double