how could I make sure that the expression is always evaluated as a double even if it has no double in it, I came across this website https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/floating-point-numeric-types, It says :
so how can I override this problem and make sure that the expression is always evaluated as a double,
I am trying to use the library of Flee, and whenever I put a fraction in it like(4/3) it deals with it as an integer, not even a float, this ruins the whole calculation so I have to get around this problem,
If I try and use the following expression it works
(4.0/3) or (4/3.0) = 1.33333 the faulty case is as follows (4/3) = 1 hopefully my explanation is clear
As mentioned in the docs, that is a feature of the language. You can always cast either the numerator or the denominator into a float or double which will end with a result of the same type: