I have two float values, 'a' and 'b'.
I need to calculate a reminder of these two float values, and it should be a float value.
Let be
float a = 1.1; float b = 0.5;
Thus, the remainder 'r' must be an exact quantity
i.e. r = a% b
r = 1.1% 0.5
0.5) 1.1 (2 1.0 ______ 0.1 r = 0.1
But this leads to an invalid operand error for float values.
How to do it?
source share