#C/rounding floats
I am trying to use the modf function to round a DOUBLE variable. It works fine
when I try it from a simple test program. But when I try using it in a program
that opens its own screen it fails. If I declare the variables as register
DOUBLE it will sometimes work. But if it fails the computer reboots. If I use
the function fmodf the computer doesn't reboot on failure but the return value
from the function is just the value I sent it. Any ideas on what is going on
here or any idea on another way to round a number.