help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with operator%


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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]