Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3042

logarithmic operation

$
0
0
Hi,

I have the following function:

Code:

double nanoSecDbToMicroSec(unsigned char nsDb)
{
        return (pow(10.0, 0.1 * nsDb) )* 0.001;       
}

when the input is : 200
The output is : -2049400832

looks wrong ?

Any inputs /corrections is very helpful

thanks a lot
Pdk

Viewing all articles
Browse latest Browse all 3042

Trending Articles