Power Function Rounds Off

  • I am writing a program that needs to calculate 10 raised to variable exponential values. The power function, however, rounds everything off to integers. I can't do things like fine 10 raised to .0001 or even 10 raised to 2.5. Does anybody know how to get around this? I have tried casting

     

  • The returned data type is the same as the first parameter in the Power function. So you cannot pass integer 10  as the first paramter. Try this:

    SELECT

    POWER(10.0000000000, 0.00001)

     

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply