Tool/software: TI C/C++ Compiler
Hello all,
I am trying to assign a fraction '1/2' to a float variable and the result is '0' rather than '0.5' when I watch the variable in watch expressions.
Also, when I add a variable with '1/2' if won't reflect and when I add '0.5' it reflects in the variable.
Please help me out with this ambiguity.
I have also tried changing the libraries but still the problem exists.
Thank You.