codeGK
Code it ALL
C# Float - CodeGK
♦ C# Float

♣ About Float in C#

Float is used to store decimal values.
C# provides 4 bytes to the variable assigned.
4 bytes is sufficient to provide 6 to 7 decimal precision in decimal.

♣ Example1: float in C#

In this example, float is illustrated.
Example
Input:
Output:

♣ Example2: float operations in C#

In this example, operations on float data type are illustrated.
Example
Input:
Output:
Prev_LessonNext_Lesson
C# Float