|
From: | GB |
Subject: | Re: help with operator% |
Date: | Wed, 19 Oct 2005 22:16:42 -0400 |
User-agent: | Mozilla Thunderbird 1.0.6 (Windows/20050716) |
Al-Burak wrote:
protected: float amount;
:
return tmp = lhs.amount % rhs.amount;
:
What am I doing wrong?
You are attempting to use the '%' operator on floats. The operator can be used only on integral types.
Gregg
[Prev in Thread] | Current Thread | [Next in Thread] |