What is difference between float and decimal?



What is difference between float and decimal?..

Answer / Matendra Singh Manu

The main difference between float and decimal in C# lies in their precision and range of values they can represent. Float uses single-precision floating-point representation (approximately 7 digits of precision), while Decimal uses a 128-bit signed integer that provides higher precision (up to 28 - 29 significant decimal digits).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is a cshtml file?

1 Answers  


Explain inheritance in c#?

1 Answers  


What is the delegates in c#?

1 Answers  


Explain how to use an extender provider in the project.

1 Answers  


How to implement a singleton design pattern in c#?

1 Answers  


What are immutable types in c#?

1 Answers  


Explain namespaces in c#.

1 Answers  


Explain the difference between access specifier and access modifier in c#?

1 Answers  


What does executescalar return in c#?

1 Answers  


Why do we need constructor?

1 Answers  


What are sessions in c#?

1 Answers  


What does using system mean in c#?

1 Answers  


Categories