div & mod

How would I use div and mod in a floating point number?
Ex. 1245.87 I know mod will not work with floats, is there a way around this?
Thanks.
Topic archived. No new replies allowed.