Forum Discussion

R0bot's avatar
R0bot
Copper Contributor
Oct 06, 2024
Solved

[Question 1][Clarification on "Fixed Fractional Values" in C# Float Data Type Usage]

Hi,   Reffering to this https://learn.microsoft.com/en-us/training/modules/csharp-literals-variables/2-exercise-literal-values in C#:   "Notice that the float data type is the least precise, so i...
  • Julian_Sharp's avatar
    Oct 06, 2024
    Floating point calculations can be imprecise. Fixed Fractions are numbers such as 1/2, 3/4, 7/8 etc which have only a limited number of decimal places. Floating point data type uses less bytes than a decimal and when memory is a premium, this matters.

Resources