Tool/software: TI C/C++ Compiler
Hello,
I have a problem with the modfl result which split integer and fractional part.
long double Varf64;
long double Resultf64;
long double FracPart;
long double IntPart
Varf64 = 1/360; // = 0.00277777778 but the result in long double is 0.002777777777775
Resultf64 = 360 * Varf64; // = 0.99999999999999
Fracpart = modfl(Resultf64, & IntPart)
The result of this operation is IntPart = 0.0 and FracPart = 1.0!! A fractional part should always be strictly < 1.0000000000 /!\ No??