Thanks guys.
Axon, result is actually a long, I am doing this operation after using the strtol() function. I'll follow your advise and see what comes up. Thanks again guys.