what is datatype?
Defines what type of data your variable will hold. Means depending upon the type of data, datatype is associated with the variable.
Example:
If you want to store whether user is login or not, use Boolean.
In this video we will discuss floating points in detail which are as follow.
floating points:
float
double
float datatype?
These are the numbers that have decimal point i.e., fraction.
E.g., 2/4 is equal 0.5
its width is 32 bits and approximate range is 1.4e-045 to 3.4e+038.
its precision is almost six digits.
Double datatype?
These are also the numbers that have decimal point i.e., fraction.
E.g., 2/4 is equal 0.5
its width is 64 bits and approximate range is 4.9e-342 to 1.8e+308.
its precision is almost 15 digits.