Home > Article > Backend Development > Comparison of double and float basic types in C#
Precision describes the difference between float and double data types.
Float is a single-precision (32-bit) floating-point data type.
Double is a double-precision (64-bit) floating-point data type.
Range of floating point types -
-3.4 x 1038 to + 3.4 x 1038
The range of double precision type is -
(+/-)5.0 x 10-324 to (+/-)1.7 x 10308
Default value of float type -
0.0F
Default value for double type -
0.0D
The above is the detailed content of Comparison of double and float basic types in C#. For more information, please follow other related articles on the PHP Chinese website!