I am trying to complete an assignment and i am stuck with the same error 3 times.
[Error] Project1.dpr(38): E2015 Operator not applicable to this operand type
This is my segment of code:
FUNCTION convert (hours:real; minutes:real) : real;
BEGIN
IF minutes MOD 60.0 <> 0.0 THEN
hours := (minutes + 60) div 60
ELSE
hours := minutes div 60;
END;
The error happens in the IF, Else and hours line... I can't see if , or understand why,.. any ideas?