+ 4
Datatype Difference
why there difference while storing point values in different data types for example float a=0.7 ; double b=0.7; why a!=b
6 ответов
+ 9
Here is a reference
https://www.tutorialspoint.com/cplusplus/cpp_data_types.htm
+ 7
Because each number data type has a different range
+ 5
@Muhammad
From your comment is seems like you ignored the link, I spent time getting for you.
If you want the answer,
The information is in the link.
+ 4
Float vs. Double demo / differences:
https://code.sololearn.com/ckZEfBRiUrEA/?ref=app
+ 4
here is simple code to show the difference:
https://code.sololearn.com/cAsFU2vjRDe3/?ref=app
+ 1
I want behind the reason is.
I know these are different. as non floating values are equal either these are store in int or double