Skip to main content
gamedev.net
🔒 Locked

% Operator

Started by MARS_999 Jan 22, 2003 at 6:13 PM 1 replies 250+ views
Original Post
MARS_999
MARS_999
In C++ I thought the % Operator only could return a interger value? Or can it return float values?
eldee
eldee
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!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.