CompuServe Messages

#C/rounding floats

    18-May-93 16:27:06
Sb: #C/rounding floats
Fm: jack york 71562,3372
To: all
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.