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;
IF minutes MOD 60.0 <> 0.0 THEN
hours := (minutes + 60) div 60
hours := minutes div 60;

The error happens in the IF, Else and hours line... I can't see if , or understand why,.. any ideas?

DUHHH!!! Mod ony works with Integers!! :)

all better.. now onto the next errors! :)