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?

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.