Forum Discussion
R0bot
Oct 06, 2024Copper Contributor
[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...
- Oct 06, 2024Floating 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.
Julian_Sharp
Oct 06, 2024Learn Expert
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.