
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
Comparison of double and float primitive types in C#
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
- Related Articles
- Comparison of double and float primitive types in Java\n
- What is the most effective way for float and double comparison in C/C++?
- Comparison of Float in Java
- Java Program to convert Double to numeric primitive data types
- Float and Double in C
- Java Program to convert Java Float to Numeric Primitive Data Types
- Difference Between Float and Double
- What are Primitive and Non-Primitive Data Types in JavaScript?
- Round float and double numbers in Java
- Difference between float and double in Arduino
- Convert double primitive type to a Double object in Java
- How to compare float and double in C++?
- Difference between float and double in C/C++
- Assigning an integer to float and comparison in C/C++
- Java primitive data types

Advertisements