What Is The Main Difference Between Float And Double Data Types?

Apart from memory size of both data types, I want to know any other differences and also want to know when we use float and when we use double?

Hi @Sweta_Joshi , welcome to the forum!

Apart from the memory size, it also impact the precision on arithmetic operations.

1 Like

Thank you for you reply, about Float and Double data types I learn one thing that Float and double, both are used to represent floating-point numbers in programming languages, I found this post on the Internet, here the author describe the comparison very well.