modulus operator for double variables

If i use modulus opertor for double variables,

e.g - 15.2%2.2 ,

iam getting the following error.

error C2296: '%' : illegal, left operand has type 'const double'
error C2297: '%' : illegal, right operand has type 'const double'

How to fix this error

[293 byte] By [velmurugan7] at [2007-12-24]
# 1

The modulus operator (%) has a stricter requirement

in that its operands must be of integral type. (To get the remainder of a

floating-point division, use the run-time function, fmod.)

See the documentations:

fmod

Multiplicative

operators

Sarath. at 2007-8-31 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 2
Thanks for your solution. Its working now.
velmurugan7 at 2007-8-31 > top of Msdn Tech,Visual C++,Visual C++ Language...