I get a comile error "double % doouble is illegal". Is there a way to take mod of two doubles (or a double and an int would work too). Thanks. You can't use the ...