• Advertisement

Archived

This topic is now archived and is closed to further replies.

% Operator

This topic is 5511 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In C++ I thought the % Operator only could return a interger value? Or can it return float values?

Share this post


Link to post
Share on other sites
Advertisement
the modulus operator (%) will return a floating point number as
long as the left hand operand is of floating point type.

-eldee
;another space monkey;
[ Forced Evolution Studios ]


::evolve::

Do NOT let Dr. Mario touch your genitals. He is not a real doctor!

Share this post


Link to post
Share on other sites

  • Advertisement