Comparison of double and float primitive types in C#

CsharpProgrammingServer Side Programming

Precision states the difference between float and double data type.

Float is a single precision (32 bit) floating point data type.

Double is a double precision (64 bit) floating point data type.

Range of a float type −

-3.4 x 1038 to + 3.4 x 1038

Range of a double type is −

(+/-)5.0 x 10-324 to (+/-)1.7 x 10308

Default value of a float type −

0.0F

Default value of a double type −

0.0D
raja
Published on 31-Aug-2018 14:29:36
Advertisements